<? $a = array( 1 => 'http://antichat.ru/index.php', 2 => 'http://forum.antichat.ru/index.php' ); $file = $a[$_GET['file']]; header('Content-Disposition: attachment; filename="'.end(explode('/',$file)).'";'); readfile($file); ?>
<? if($_GET['download'] == 'true') { $a = array( 1 => 'http://antichat.ru/index.php', 2 => 'http://forum.antichat.ru/index.php' ); $file = $a[$_GET['file']]; header('Content-Disposition: attachment; filename="'.end(explode('/',$file)).'";'); readfile($file); } else { header("Refresh: 0; URL=".$_SERVER['REQUEST_URI']."&download=true"); echo('Сейчас начнётся скачка'); } ?>