//เช็ค user และ password จาก ฟอร์ม if ((!empty($username)) and (!empty($password) )) { $username = trim($_POST['user']); $password = trim($_POST['pass']); $num_rows=num_rows("$tbperson","where member_user='$username' "); $login=select("$tbperson","where member_user='$username' and member_pass='$password' "); if($num_rows==0){ echo "<script> alert('ไม่มี username นี้ในระบบกรุณาเข้าสู่ระบบใหม่'); window.history.back();</script>"; exit(); } else if (trim($username) == trim($login['member_user']) and trim($password) == trim($login['member_pass'])) { if($login['uid']==9){ $_SESSION["regist"]=1; $_SESSION["sess_name"]=$login['member_name']; //maker $_SESSION["sess_uid"]=$login['uid']; ?> <html> <title> Login</title> <meta Http-equiv="refresh" Content="2; Url=admin/index.php">//ตรงนี้กำหนดเวลา <style type="text/css"> <!-- .style20 { color: #3366FF; font-weight: bold; } --></style> <center><br><br><br> <br><img src="picture/help-loading.gif">//ตรงนี้ใส่ รูป Loding หาเอา google เยอะแยะ <br><br><br><br> </center> </html> <? exit(); }
<!DOCTYPE html> <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(function() { $("#progressbar").progressbar({ value: 0 }); setTimeout(updateProgress, 500); }); function updateProgress() { var progress; progress = $("#progressbar") .progressbar("option","value"); if (progress <= 100) { $("#progressbar") .progressbar("option", "value", progress + 1); $("#progresspercent").html(progress+"%") setTimeout(updateProgress, 10); } } </script> </head> <body style="font-size:62.5%;"> <div id="progressbar"></div> <div id="progresspercent"></div> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง