@include_once('con_fig.php');
$link = @mysqli_connect($myServer,$myUser,$myPassword,$myDatabase);
$rt=@mysqli_query($link,"select id,name0,origin_name from attach where name0='".($_GET["f"])."'");
if($row=@mysqli_fetch_row($rt)){
if(!in_array(strtolower($row[2]),$allowed_files))die("
You Are Not Allowed To View This File!!!!!!
");
@PlusFile((int)base64_decode($_GET["f"]),$link);
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-type: application/stream');
header('Content-Disposition: attachment; filename="'.$row[1].'.'.$row[2].'";');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize('topic_file/'.$row[1].'.'.$row[2]));
readfile('topic_file/'.$row[1].'.'.$row[2]);
}
else die("
Not Find!!!!!!
");
?>