
Untitled
By: a guest on
Aug 21st, 2012 | syntax:
PHP | size: 0.26 KB | hits: 24 | expires: Never
$file = '../downloads/Patch_D2.mpq';
$txt = $file . '.txt';
if ($_GET['page'] == 'downloads?file=patch')
{
if(!file_exists($txt)){
file_put_contents($txt, '0');
}
file_put_contents($txt, ((int) file_get_contents($txt)) + 1);
header("Location: $file");
die;
}