View file str/loadmusic.php

File size: 885B
<?php
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";


$countload = @implode("",@file("countload/music/$page/$fid.dat"));
if($countload==""){$countload="0";}
$plus=$countload+1;
$filename3 ="countload/music/$page/$fid.dat";
$fp = @fopen ($filename3, "w");
fputs($fp,"$plus");
fclose($fp);

$filename2 ="counter/music$page.dat";
$fp2 = @fopen ($filename2, "r");
if($fp2){$counter2 = fgets($fp2, 10);
fclose($fp2);
} else { $counter2 = 0; }
$counter2++;
$fp2 = @fopen ($filename2, "w");
if($fp2) {$w = fputs($fp2, $counter2); fclose($fp2); }

header("location: music/$page/$fid");

?>