include("config.php"); if(isset($_GET['pro_name'])){ $gard = mysql_query("SELECT * FROM project WHERE pro_name = '".$_GET['pro_name']."'limit 0,1")or die (mysql_error()); $data = mysql_fetch_array($gard, MYSQLI_ASSOC); $file =$data['pro_name']; $name = "ieup/project/"; $kk5 = $name.$file; header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="'.basename($file).'"'); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); header('Content-Transfer-Encoding: binary'); header('Connection: Keep-Alive'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header("Content-Length:". filesize($kk5)); flush(); $fp = fopen($kk5, "r"); while(!feof($fp)){ echo fread($fp, 65536); flush(); } fclose($fp); }
<?php $id=$_GET['id']; $file='img/'.base64_decode($id); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: '.filesize($file)); readfile($file); //echo $content; ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง