?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/header.php |
<? session_start(); require("include/db.class.php"); ?> <? if(isset($_POST[login])){ $res = $db->query("select * from user where email_address = '$_POST[email_address]' and password='$_POST[password]'"); while($line = mysql_fetch_array($res)){ $_SESSION[u_id] =$line[u_id]; $_SESSION[u_name] =$line[u_name]; echo "<script>window.location.href='index.php';</script>"; } } if($_GET[logout]){ session_destroy(); echo "<script>window.location.href='index.php';</script>"; } ?> <!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=utf-8" /> <title>Daddy Photo ลั้ลลา</title> <meta property="og:image" content="http://www.drynjoy.com/clip/images/thumb2.png" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <style type="text/css"> <!-- body{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-image: url(); } .style6 {color: #333333} .style7 {color: #FFFFFF} --> </style> <? require("include/module.php"); ?> </head> <body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"> <div align="center"> <table width="1024" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <div align="center"> <? if(!isset($_SESSION[u_id])){ ?> <!--<table width="85%" border="0" cellspacing="0" cellpadding="0" height="50"> <tr> <td colspan="2" valign="middle"> <div align="right"> <font size="2" color="black"><a href="register.php">ยังไม่เป็นสมาชิกสมัครสมาชิกคลิ๊กเลยค่ะ</a></font></div> </td> <td valign="middle" width="60"></td> </tr> <tr> <td valign="middle" colspan="2"> <form method="post"> <div align="right"> <font size="2" color="#333333" face="Verdana, Arial, Helvetica, sans-serif"> <input name="login" type="hidden" value="login" /> User Name: <input type="text" name="u_email" size="24"> Password:<input type="password" name="u_pwd" size="24"> </font> <input type="image" src="images/login.png" height="31" width="56" border="0" align="middle"> </div> </form> </td> <td valign="middle" width="60"> </td> </tr> </table>--> <? }else{ ?> <? } ?> <tr> <td colspan="3" width="1200"><table id="Table_01" width="1028" border="0" cellspacing="0" cellpadding="0" height="358"> <tr> <td height="14" colspan="2"><table width="649" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="118"><img src="images/w_01.jpg" width="118" height="64" alt="" /></td> <td width="148"><img src="images/w_02.jpg" width="148" height="64" alt="" /></td> <td width="153"><img src="images/w_03.jpg" width="153" height="64" alt="" /></td> <td width="187"><img src="images/w_04.jpg" width="187" height="64" alt="" /></td> <td width="43"><a href="register.php"><img src="images/w_05.jpg" alt="" width="150" height="64" border="0" /></a></td> </tr> </table></td> </tr> <tr> <td width="791" height="207"><img src="images/w_07.jpg" width="791" height="344" alt="" /></td> <td width="237" height="207" valign="top" background="headbg.jpg"><? if(isset($_SESSION[u_id])){ ?> <table width="98%" border="0" bordercolor="#FFFFFF" cellspacing="0" cellpadding="0" style="border-collapse:collapse"> <tr height="40" > <td height="40" background="images/w_08.jpg"><div align="center" class="style3"> <font face="Verdana, Arial, Helvetica, sans-serif"> <?=$_SESSION[u_name]?> </font> </div></td> </tr> </table> <? }else{ ?> <table width="100%" border="0" bordercolor="#FFFFFF" cellspacing="0" cellpadding="0" style="border-collapse:collapse"> <tr> <td align="left" background="images/i_17.jpg" bgcolor="#FFFFFF" style="padding:10px; color:#a8875e; "><form method="post" style="text-align:left; " > <div align="center"><strong><font color="#a8875e" face="Verdana, Arial, Helvetica, sans-serif" > <input name="login" type="hidden" value="login" /> </font><font face="Verdana, Arial, Helvetica, sans-serif" ><span class="style7">User</span></font><font color="#a8875e" face="Verdana, Arial, Helvetica, sans-serif" > <input name="email_address" type="text" id="email_address" style="width:120px;"> <br /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif" ><span class="style7">Pass</span></font><font color="#a8875e" face="Verdana, Arial, Helvetica, sans-serif" > <input name="password" type="password" id="password" style="width:120px;"> </font></strong> <br /> <input name="Input" type="submit" value="Login"> <span class="style6"><br /> </span> <span class="style6"><a href="register.php" style="text-decoration:none;color:#a8875e;"></a></span> </div> </form></td> </tr> <? } ?> </td> </tr> </table></td> </tr> </table> </div> </td> </tr> <tr></td> <td valign="top"> <? if(isset($_SESSION[u_id])){ ?> <? }else{ ?> <? } ?>