<style type="text/css"> ul.menu-item{ list-style-type:circle } ul.menu-item li a{ display:inline-block; width:300px; padding-top:3px; } ul.menu-item li a:hover{ background-color:gray; color:white; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: black 1px 3px 3px; -moz-box-shadow: black 1px 3px 3px; box-shadow: black 1px 3px 3px; } </style> <ul class="menu-item"> <?php $file_list = array(); $folder_list = array(); $total_size = 0; $path='./upload_files'; if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." ) { $file_list[] = $file; } } closedir($handle); } arsort($file_list); foreach($file_list as $single){ echo "<li><a style=\"pointer:hand;padding:0.4em;\" onclick=\"window.open('take_file.php?fullpath=$path&filename=$single','_blank','')\">$single</a></li>\n"; } } ?> </ul>
<?php //session_start(); //if( isset($_SESSION["authorized"]) and isset($_SESSION["account"]) and $_SESSION["level"] == "Admin" ){ header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-type: text/plain"); header("Content-Disposition: attachment; filename=\"{$_REQUEST["filename"]}\";" ); header("Content-Transfer-Encoding: binary"); //header("Content-Length: ".filesize($_REQUEST["filename"])); readfile("{$_REQUEST["fullpath"]}/{$_REQUEST["filename"]}"); //} ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง