Give me file download time script and code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Give me file download time script and code

    Give me file download time script and code for autoindex

    #2
    hmm Ok In Page Where File name Will Be Listed
    Add Dis
    PHP Code:
    $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
    PHP Code:
    echo $hit
    and Put Dis
    PHP 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);

    In Requested Page Where Will be Header
    demo

    Free 3gp porn videos
    Last edited by shushant; 24.11.11, 14:34.

    Comment

    Working...
    X