Quote:<? if ($maxboarduser==""){ ?> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td valign="top"></td><td valign="top"> <form method="post" action="index.php"> <div align="left">Username: <br> <input type="text" name="maxboarduser" maxlength="65" size="20"> <br> Password:<br> <input type="password" name="maxboardpwd" maxlength="65" size="20"> <br> <input type="submit" name="Submit" value="ÊÁÒªÔ¡à¢éÒÊÙèÃкº"> <br> </div> </form> </td> </tr> </table> <div align="center"> <?php if(isset($_POST['Submit'])) { $maxboarduser = $_POST['maxboarduser']; $maxboardpwd = $_POST['maxboardpwd']; include("config.in.php"); $db_conn = mysql_connect($host,$username,$password) or die ("äÁèÊÒÁÒöµÔ´µèÍ´ÒµéÒàºÊä´é"); mysql_select_db($dbname,$db_conn); mysql_query('SET NAMES tis620'); $query = "select * from member where login = '$maxboarduser' AND pass = '$maxboardpwd' "; $result = mysql_query($query,$db_conn); $rows = mysql_num_rows($result); $arr = mysql_fetch_row( $result ); if($rows <= 0){ echo "<br><center>ID ËÃ×Í Pass ÊÁÒªÔ¡äÁè¶Ù¡µéͧ<br>¡ÃسÒÅͧÍÕ¡¤ÃÑé§</center>"; } else { session_register("maxboarduser"); session_register("maxboardname"); session_register("maxboardpwd"); echo('Logged in.... Click <a href=><strong>here</strong></a>'); echo "<meta http-equiv=refresh content=0;URL=index.php>"; } } ?> <? }else{?> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td> </td><td><div class="lmenu"><strong>ÂÔ¹´Õµé͹ÃѺ : <?= $maxboarduser;?> </strong></div> <div><img src="images/line_h2.gif" width="186" height="1" border="0" alt=""></div> <table border="0" align="top" cellpadding="0" cellspacing="0" width="180" bgcolor = '#DDDDDD'> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href=''> <a href='index.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> ˹éÒáá</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='all.php'> <a href='all.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> »ÃСÒÈ·Ñé§ËÁ´</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='addform.php'> <a href='addform.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> à¾ÔèÁ»ÃСÒÈ</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='all.php'> <a href='all.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> á¡é䢻ÃСÒÈ</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='editmember.php'> <a href='editmember.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> á¡é䢢éÍÁÙÅÊèǹµÑÇ</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='changepwd.php'> <a href='changepwd.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> à»ÅÕè¹ÃËÑʼèÒ¹</font></a></td></tr> <tr><td height = '20' width='' bgcolor="#FFFFFF" class=cellbox align=left style=cursor:hand onMouseOver=this.style.background='#FF8428' onMouseOut=this.style.background='#FFFFFF' onClick=window.location.href='logout.php'> <a href='logout.php' class='style1'><font color="#333333" class="ws8"><img src="tem/ul.gif" Border="0" width="9" height="9"> ÍÍ¡¨Ò¡Ãкº</font></a></td></tr> </table> </td> </tr> </table> <? } ?> </div></td> </tr>
Quote:include("config.in.php");
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง