Give me file download time script and code

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

1 reply · 495 views · started 15 years ago · 1 min read

2 participants
Booom Newbie · 1 posts #1

Give me file download time script and code for autoindex

shushant Developer · 207 posts #2

hmm Ok In Page Where File name Will Be Listed Add Dis

$name = $filenamestring;
//Lets Encode it 
$c=base64_encode($name);

$hit = @file_get_contents("d/$c.log");
if(empty($hit))
{
$hit = 0;
}

and use it To Show How Many time It has been Downloaded

echo $hit;

and Put Dis

$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);
}

In Requested Page Where Will be Header demo

Free 3gp porn videos

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close