查看文件: index.php
大小: 1.91 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <? if (!isset($_SESSION)){ session_start(); }?> <?php if (isset($_POST['Submit'])){ $colname_W2 = "1"; $colpass_W2 = "1"; if (isset($_POST['name'])) { $colname_W2 = (get_magic_quotes_gpc()) ? $_POST['name'] : addslashes($_POST['name']); $colpass_W2 = (get_magic_quotes_gpc()) ? $_POST['passwd'] : addslashes($_POST['passwd']); } if(($colname_W2=="jonny8")&&($colpass_W2=="0937")) { $_SESSION['login_boss']='jonny8'; header(sprintf("Location: %s", 'welcome.php')); } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>管理系統登入-請輸入帳號密碼</title> <style type="text/css"> body { background-color: #fff; } .txt { color: #000000; } </style> </head> <body> <form name="form1" method="post" action=""> <p> </p> <p> </p> <table width="350" height="250" border="0" align="center" cellpadding="0" cellspacing="0" background="images/loginbg.png"> <tr> <td><table width="253" border="0" align="center" cellpadding="0" cellspacing="0" class="font_blank_12x"> <tr> <td colspan="2" align="center" valign="middle"> </td> </tr> <tr> <td width="219" height="61" align="center" valign="middle"><h3 class="txt">帳號</h3></td> <td width="255"><input name="name" type="text" id="name" size="20" maxlength="20"> </td> </tr> <tr> <td height="54" align="center" valign="middle"><h3 class="txt">密碼</h3></td> <td><input name="passwd" type="password" id="passwd" size="20" maxlength="20"></td> </tr> <tr> <td height="30" colspan="2"><div align="center"> <input type="submit" name="Submit" value="登入"> </div></td> </tr> </table></td> </tr> </table> <p> </p> <p> </p> </form> </body> </html>
保存
取消
返回文件列表