header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
include("db_connect.php");
$access_time=1*24*3600; // access_time since first_login set to 24 hours
$file_password=$_GET["file"];
if(!empty($file_password))
{
//check if file_password exist in db;
if(!check_file_pwd($file_password)){
wrong_user_info();
}
$login_date=set_login_date($file_password);
if(($login_date+$access_time)
- Right click this link and click 'Save Target As'.
- Select destination and save the file to your hard drive.
|
HTML;
$out=file_get_contents("template.tpl");
$out=str_replace("[message]", $message, $out);
echo $out;
exit(0);
}
?>