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
ol {list-style: none;} | |
body > ol { counter-reset:level1;} | |
body > ol > li { counter-increment:level1; } | |
body > ol > li:before {content: counter(level1) " "; } | |
body > ol > li > ol { counter-reset:level2; } | |
body > ol > li > ol > li { counter-increment:level2; } | |
body > ol > li > ol > li:before { content: counter(level1) "." counter(level2) " "; } |
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
<? | |
$purifier_config = HTMLPurifier_Config::createDefault(); | |
$purifier_config->set('HTML.AllowedElements', 'p, a, ul, ol, li, h1, h2, h3, h4, h5, h6, br, strong, em, b, i'); | |
$purifier_config->set('HTML.AllowedAttributes', ''); | |
$purifier_config->set('CSS.AllowedProperties', ''); | |
$purifier_config->set('AutoFormat.RemoveEmpty', true); | |
$purifier_config->set('AutoFormat.AutoParagraph', true); | |
// May cause problems with empty table cells and headers |
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
<? | |
$filename = $_POST['filename']; | |
$entries = array(); | |
$row = 1; | |
if (($handle = fopen($filename, "r")) !== FALSE) { | |
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { | |
if ($row == 1) { |
OlderNewer