<? session_start (); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>=ตรวจสอบ ADMIN =</title> </head> <body> <? //$user=$_POST[user] ; //$pass=$_POST[pass] ; $user = $_REQUEST["user"]; $pass = $_REQUEST["txt_pass"]; if ($user == "admin" and $pass == "1234" ) { $_SESSION[sess_userid]=session_id ( ); header ( "Location : new_main.php" ) ; } else { echo "<h3> ERROR : Username หรือ Password ไม่ถูกต้อง </h3>"; exit(); } ?> </body> </html> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>ระบบจัดการข่าวสาร ศูนย์วิทยาบริการมหาวิทยาลัยราชภัฏสวนสุนันทา</title> </head> <body> <center><H2>:: ระบบจัดการข่าวสารสำหรับ Admin ::</H2> </center> <FORM METHOD="POST" ACTION="new_check.php" > <table width="40%" align="center"> <tr> <td><div align="center"><b>Username:</b> </div> </td> <td><input name="user" type="text" > *</td> </tr> <tr> <td><div align="center"><b>Password : </b></div></td> <td><input name=txt_pass type="password" id="txt_pass" /> * </td> </tr> <tr> <td> </td> <td><input type="submit" value="submit" > <input type="reset" value="reset" > </td> </tr> </table> </form> </body> </html>
<?php //$user=$_POST[user] ; //$pass=$_POST[pass] ; $user = $_REQUEST["user"]; $pass = $_REQUEST["txt_pass"]; if ($user == "admin" and $pass == "1234" ) { $_SESSION[sess_userid]=session_id ( ); header ( "Location : new_main.php" ) ; } else { echo "<h3> ERROR : Username หรือ Password ไม่ถูกต้อง </h3>"; exit(); } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง