<a href=javascript:if(confirm('ยืนยันการออกจากระบบ')==true){window.location='logout.php';}>*ออกจากระบบ*</a>
<?php session_start(); unset ( $_SESSION['ses_userid'] ); unset ( $_SESSION['ses_username'] ); session_destroy(); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>ออกจากระบบ</title> <META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.google.com"> </head> <body> คุณได้ออกจากระบบแล้ว </body> </html>
<? session_start(); function fncAuthentication() { header('WWW-Authenticate: Basic realm="mysql15.000webhost.com"'); header("HTTP/1.0 401 Unauthorized"); exit; } if (trim($_SERVER['PHP_AUTH_USER'])!= "" and trim($_SERVER['PHP_AUTH_PW']) != "") { mysql_connect("mysql15.000webhost.com"," "," "); mysql_select_db(" "); $strSQL = "SELECT * FROM user WHERE User = '".trim($_SERVER['PHP_AUTH_USER'])."' and Password = '".trim($_SERVER['PHP_AUTH_PW'])."'"; $objQuery = mysql_query($strSQL); if(mysql_fetch_array($objQuery)) { $_SESSION["strUser"] = $_SERVER['PHP_AUTH_USER']; $_SESSION["strPass"] = $_SERVER['PHP_AUTH_PW']; } mysql_close(); } if(trim($_SESSION["strUser"])=="" or trim($_SESSION["strPass"])=="") { fncAuthentication(); exit(); } ?>
if(trim($_SESSION["strUser"])=="" or trim($_SESSION["strPass"])=="")
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง