sig.png (upload in ASCII mode!
Code:
<?php
$dir=opendir(".");
while(($file=readdir($dir))!===false)
{
if(pregi_match('/\.gif$/i',$file))
{
$list[]=$file;
}
}
closedir($dir);
unset($dir);
srand((double)microtime()*1000000);
$n=rand(0,sizeof($list)-1);
header('Cache-control: no-cache, must-revalidate, no-store');
header('Cache-control: post-check=0, pre-check=0',false);
header('Content-disposition: inline; filename="sig.png"');
header('Content-type: image/gif');
header('Expires: 0');
header('Pragma: no-store');
readfile('./'.$list[$n]);
unset($list);
unset($n);
?>
.htaccess
Code:
<Files .htaccess>
order allow, deny
deny from all
</Files>
AddType application/x-httpd-php .png
.htaccess (if the above one doesn't work)
Code:
<Files .htaccess>
order allow, deny
deny from all
</Files>
AddType x-mapp-php4 .png
Hope this helps.
Bookmarks