<? //ob_start(); @session_start(); $username=$_POST['username']; $password=$_POST['password']; $_SESSION['username']=$username; $_SESSION['password']=$password; if(!isset($_SESSION['username']) and !isset($_SESSION['password'])){ header ("Location: L041n.php") ; exit(); } ?> <!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> <link href="style.css" rel="stylesheet" type="text/css" /> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="maintopPan"> <div id="maintopPanOne"> <div id="topHeaderPan"> <a href="index.html"><img src="images/logo.jpg" title="Cool Web" alt="Cool Web" width="220" height="53" border="0" /></a> <ul> <li><a href="object.php"><span id="result_box2"><span title="วัตถุประสงค์" closure_hashcode_56o22c="35">Objectives</span></span></a></li> <li><a href="proCess_as_PerSonViEw.php"><span id="result_box"><span title="รายชื่อศิษย์เก่า" closure_hashcode_56o22c="27">Alumni List</span></span></a></li> <li><a href="lOAd.php"><span title="คำแนะนำสำหรับศิษย์เก่า/ผู้ประสานงาน/เจ้าหน้าที่">Advice</span></a></li> <li><a href="L041n.php"><span title="login เข้าระบบผู้ประสานงานรุ่นและเจ้าหน้าที่งานกิจการนิสิต" >Login Member</span></a></li> </ul> </div> <div id="topSidemenuPan"> <ul> <li class="home"><a href="index.php">Home</a></li> <li class="contact"><a href="http://www.facebook.com/home.php?#/profile.php?ref=profile&id=100000536622287">Contact</a></li> </ul> </div> </div> </div> <div id="bodyPan2"> <div> <div align="center" id="bodyPan"> <p> </p> <div> <div align="left"> <table width="271" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="271"> </td> </tr> <tr> <td><?php if (***อันนี้เป็น username และ password ที่กำหนดไว้***) { /* echo "<h3>สวัสดีค่ะคุณ $username [<a href='mEnU.php'>Click >>>ไปหน้าเมนูผู้ประสานงานค่ะ</a>]</h3>"; */ echo '<script>document.location="mEnU.php"</script>'; } else if (***อันนี้เป็น username และ password ที่กำหนดไว้*** ) { /* echo "<h3>สวัสดีครับพี่ $username [<a href='mEnU2.php'>Click >>>ไปหน้าเมนูผู้ดูแลระบบครับ</a>]</h3>"; */ echo '<script>document.location="mEnU2.php"</script>'; } else { echo "<h3>ERROR : นั้นแน่ กรอกUsername กับ Password มั่วหรอจ๊ะ</h3>"; echo "<h3>ติดต่อพี่เปิ้ลด่วนมากมายค่ะ</h3>"; echo "<h3><a href='L041n.php'>กลับหน้า Login in</a></h3>"; echo "<h3><a href='index.php'>กลับหน้าหลัก</a></h3>"; } ?></td> </tr> <tr> <td></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </div> </div> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </div> <p> </p> <p></p> </div> </div> <div id="footermainPan"> <div><SCRIPT src="http://websociety.biz/free-counter/counter.php?User=leehoon5&num_type=1"></SCRIPT> </div> <div id="footerPan"> <a href="index.php"><img src="images/footerlogo.gif" title="คณะศิลปศาสตร์และวิทยาศาสตร์" alt="คณะศิลปศาสตร์และวิทยาศาสตร์" width="218" height="52" border="0" /></a> <ul> <li><a href="index.php">Home</a>| </li> <li><a href="object.php">วัตถุประสงค์การจัดงาน</a> | </li> <li><a href="proCess_as_PerSonViEw.php">รายชื่อศิษย์เก่าที่ลงทะเบียนแล้ว</a>| </li> <li><a href="L041n.php">เข้าสู่ระบบ</a>| </li> </ul> <p class="copyright">©Kritsanakron Sripinpao ComputerScience No.6. All rights reserved.</p> <ul class="templateworld"> <li>Design By:</li> <li><a href="http://www.facebook.com/home.php?ref=home#/DJ.JACKkumusicmax?ref=profile" target="_blank">ComputerScience</a></li> </ul> </div> </div> </body> </html>
<? @session_start(); $username=$_SESSION['username']; $password=$_SESSION['password']; if(!isset($_SESSION['username']) and !isset($_SESSION['password'])){ echo '<script>document.location="L041n.php"</script>'; exit(); } ?> <!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> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="maintopPan"> <div id="maintopPanOne"> <div id="topHeaderPan"> <a href="index.html"><img src="images/logo.jpg" title="Cool Web" alt="Cool Web" width="220" height="53" border="0" /></a> <ul> <li><a href="object.php"><span id="result_box2"><span title="วัตถุประสงค์การจัดงาน" closure_hashcode_56o22c="35">Objectives</span></span></a></li> <li><a href="proCess_as_PerSonViEw.php"><span id="result_box"><span title="รายชื่อศิษย์เก่าที่ลงทะเบียนแล้ว" closure_hashcode_56o22c="27">Alumni List</span></span></a></li> <li><a href="lOAd.php"><span title="คำแนะนำสำหรับศิษย์เก่า/ผู้ประสานงาน/เจ้าหน้าที่">Advice</span></a></li> <li><a href="L041n.php"><span title="login เข้าระบบผู้ประสานงานรุ่นและเจ้าหน้าที่งานกิจการนิสิต" >Login Member</span></a></li> </ul> </div> <div id="topSidemenuPan"> <ul> <li class="home"><a href="index.php">Home</a></li> <li class="contact"><a href="http://www.facebook.com/home.php?#/profile.php?ref=profile&id=100000536622287">Contact</a></li> </ul> </div> </div> </div> <div id="bodyPan2"> <div> <div align="center" id="bodyPan"> <div> <table width="979" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left"> </td> <td align="left"> </td> <td align="left"> </td> <td align="left"></td> <td align="left"><a href="process_logout.php">Log Out</a> </td> </tr> <tr> <td colspan="5" align="left">สวัสดีค่ะคุณ <?php echo "$username"?> คุณกำลังทำรายการที่หน้าเมนูหลักสำหรับผู้ประสานงานค่ะ</td> </tr> <tr> <td colspan="5"><div align="center">......::::::::::::::เมนสำหรับผู้ประสานงานรุ่น:::::::::::.........</div></td> </tr> <tr> <td colspan="5" align="left" bgcolor="#99CC00">เลขบัญชีที่ทานจะโอนเงินค่าลงทะเบียน</td> </tr> <tr> <td colspan="5" align="left" bgcolor="#CC66FF"> <a href="#">ธนาคารไทยพาณิชย์ สาขาย่อย มหาวิทยาลัยเกษตรศาสตร์ กำแพงแสน</a></td> </tr> <tr> <td colspan="5" align="left" bgcolor="#FFFF66"> เลขที่บัญชี <strong><a href="#">769-227424-5</a></strong></td> </tr> <tr> <td colspan="5" align="left" bgcolor="#FFCCFF"> ชื่อบัญชี <strong><a href="#">นายวิเนตร แสนหาญ</a></strong></td> </tr> <tr> <td colspan="5" align="left" bgcolor="#000000"><strong><a href="#"><em>ให้ผู้ประสานงานโอนเงินมาภายในวันที่ 6 มกราคม 2553 ก่อนเวลา 23.00 น. ค่ะ</em></a></strong></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td width="177"><div align="center"><a href="as_no1.php">ลงทะเบียนผู้เข้าร่วมงาน</a> |</div></td> <td width="107"><div align="center"><a href="aS_yEs_sLip.php">แจ้งการโอนเงิน</a> </div></td> <td width="252"><div align="center">| <a href="proCess_as_ViEw_fRienD.php">ดูรายชื่อผู้ติดตาม/เลขบัตรเข้างาน</a> |</div></td> <td width="219"><div align="center"><a href="proCess_as_ViEw.php">ดูรายชื่อศิษย์เก่า/เลขบัตรเข้างาน</a> | </div></td> <td width="224"><div align="left">ดูแผนผังที่นั่ง</div></td> </tr> <tr> <td colspan="5" align="left"></td> </tr> <tr> <td colspan="5" align="left"> </td> </tr> <tr> <td colspan="5" align="left" bgcolor="#FF0000">ผู้ประสานงานอย่าลืมลงทะเบียนชื่อของท่านลงไปด้วยนะค่ะจะได้สะดวกในการชำระเงินค่ะ</td> </tr> </table> <p> </p> </div> </div> <p> </p> <p></p> </div> </div> <div id="footermainPan"> <div><SCRIPT src="http://websociety.biz/free-counter/counter.php?User=leehoon5&num_type=1"></SCRIPT> </div> <div id="footerPan"> <a href="index.php"><img src="images/footerlogo.gif" title="คณะศิลปศาสตร์และวิทยาศาสตร์" alt="คณะศิลปศาสตร์และวิทยาศาสตร์" width="218" height="52" border="0" /></a> <ul> <li><a href="index.php">Home</a>| </li> <li><a href="object.php">วัตถุประสงค์การจัดงาน</a> | </li> <li><a href="proCess_as_PerSonViEw.php">รายชื่อศิษย์เก่าที่ลงทะเบียนแล้ว</a>| </li> <li><a href="L041n.php">เข้าสู่ระบบ</a>| </li> </ul> <p class="copyright">©Kritsanakron Sripinpao ComputerScience No.6. All rights reserved.</p> <ul class="templateworld"> <li>Design By:</li> <li><a href="http://www.facebook.com/home.php?ref=home#/DJ.JACKkumusicmax?ref=profile" target="_blank">ComputerScience</a></li> </ul> </div> </div> </body> </html>
session_start(); $strUsername = trim($_POST["tUsername"]); $strPassword = trim($_POST["tPassword"]); //*** Check Username ***// if(trim($strUsername) == "") { echo "<font color=red><img src='photo2/ErrorCircle.png' width='20' height='20'>** กรุณากรอกUsername ด้วยครับ</font>"; exit(); } //*** Check Password ***// if(trim($strPassword) == "") { echo "<font color=red><img src='photo2/ErrorCircle.png' width='20' height='20'>** กรุณากรอก Password ด้วยครับ</font>"; exit(); } $objConnect = mysql_connect("localhost","root","test") or die("Error Connect to Database"); $objDB = mysql_select_db("mydatabase"); //*** Check Username & Password ***// $strSQL = "SELECT * FROM account WHERE Username = '".$strUsername."' and Password = '".$strPassword."' "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $objResult = mysql_fetch_array($objQuery); if($objResult) { echo "Y"; //*** Session ***// $_SESSION["Username"] = $strUsername; session_write_close(); } else { echo "<font color='red'> <img src='photo2/ErrorCircle.png' width='20' height='20'>Username & Password is wrong</center>"; } mysql_close($objConnect);
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง