This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//connect to the database | |
$connect = mysql_connect("localhost","username","password"); | |
mysql_select_db("mydatabase",$connect); //select the table | |
// | |
if ($_FILES[csv][size] > 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM XXXX; | |
{******************************************** | |
* X X X X 2 - The ultimative DOOM 2-Clone * | |
* * | |
* Author: B.M”ller * | |
* Publisher: B™MMSOFT (Germany) * | |
* * | |
* Date of begin: 14.04.95 * | |
* Date of end : __.__.__ * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<modification> | |
<id>Display products in sub-categories while browsing a parent category</id> | |
<version>1.0.0</version> | |
<vqmver>2.4.0</vqmver> | |
<author>Jay Williams - [email protected]</author> | |
<file name="catalog/controller/product/category.php"> | |
<operation> | |
<search position="after"><![CDATA['filter_category_id' => $category_id,]]></search> | |
<add><![CDATA[ 'filter_sub_category' => true,]]></add> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Flexible Google-style progress indicator | |
*/ | |
@keyframes progress { | |
50% { border-width: .5em 0; } | |
to { border-width: .5em 0 0 0; } | |
} | |
@keyframes rotate { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> | |
PHP Demos | |
</title> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function encode_email($email='[email protected]', $linkText='Contact Us', $attrs ='class="emailencoder"' ) | |
{ | |
$email = str_replace('@', '@', $email); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/************** | |
*@length - length of random string (must be a multiple of 2) | |
**************/ | |
function readable_random_string($length = 6) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getRealIpAddr() | |
{ | |
if ( !empty( $_SERVER['HTTP_CLIENT_IP'] ) ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function text2bbc($text) | |
{ | |
$find = array | |
( | |
'~\[b\](.*?)\[/b\]~s', |