This file contains 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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^([0-9]+)/([0-9]+)/(.+)$ index.php?src=$3&w=$1&h=$2&q=90&zc=2 [L] |
This file contains 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
<? | |
if ($url_parts[1]!='') | |
{ | |
$args = array(); | |
for($i=0; $i<count($url_parts);$i++) { | |
switch($url_parts[$i]) { | |
case 'page': | |
{ | |
$args['page']=$url_parts[$i+1]; | |
break |
This file contains 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
<? | |
function moneyify($value) { | |
$value = ((int)$value == (float)$value) ? (int)$value : (float)$value; | |
$value = number_format($value); | |
return $value; | |
} | |
?> |
This file contains 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
<? | |
$url=str_replace('.html','',$_GET['u']); | |
$page_url=$url; | |
$args=array(); | |
if(strstr($url,'?')) | |
{ | |
$url=explode('?',$url); | |
$tmp=$url[1]; | |
$tmp=explode('&',$tmp); |
This file contains 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
<? | |
preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, 201)); | |
?> |
This file contains 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
#!/bin/bash | |
sudo netstat -anp | grep LISTEN |
This file contains 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
timeout 7200 && rundll32 powrprof.dll,SetSuspendState |
This file contains 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
if ($.browser.msie && $.browser.version.substr(0,1)<7) { | |
} |
This file contains 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
<label for="state">State</label> | |
<select name="state" id="state" class="validate[required]"> | |
<? $state = array('','QLD', 'NSW', 'VIC', 'ACT', 'SA', 'NT', 'TAS', 'WA');?> | |
<? foreach($state as $s): ?> | |
<option value="<?=$s?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
<? endforeach; ?> | |
</select> |
This file contains 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
<label for="state">State</label> | |
<select name="state" id="state" class="validate[required]"> | |
<? $state = array('','QLD' => 'Queensland', 'NSW' => 'New South Wales', 'VIC' => 'Victoria', 'ACT' => 'Australian Capital Territory', 'SA' => 'South Australia', 'NT' => 'Northern Territory', 'TAS' => 'Tasmania', 'WA' => 'Western Australia');?> | |
<? foreach($state as $k => $s): ?> | |
<option value="<?=$k?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
<? endforeach; ?> | |
</select> |
OlderNewer