Give me file download time script and code for autoindex
Give me file download time script and code
Collapse
X
-
hmm Ok In Page Where File name Will Be Listed
Add Dis
and use it To Show How Many time It has been DownloadedPHP Code:$name = $filenamestring; //Lets Encode it $c=base64_encode($name); $hit = @file_get_contents("d/$c.log"); if(empty($hit)) { $hit = 0; }and Put DisPHP Code:echo $hit;
In Requested Page Where Will be HeaderPHP Code:$file=$_GET['file']; $name = basename($file); @$cf = base64_encode($file); $ck = @file_get_contents("d/$cf.log"); if(!empty($ck)){ if(!preg_match("/[0-9]/i",$ck)) exit("Hehe"); } if(empty($ck)) $ck = 0; if($fp=@fopen("d/$cf.log","w+")){ @fputs($fp,$ck+1); @fclose($fp); }
demo
Free 3gp porn videosLast edited by shushant; 24.11.11, 14:34.
Comment