<?php
session_start( );
$sessid = session_id( );
$Subm = @$_POST['usname'];
echo $aaaaaa;
if ( $Subm != "" )
{
    $usname = trim( $_POST['usname'] );
    $usname = str_replace( "'", "", $usname );
    $pwl = trim( $_POST['pwl'] );
    $pwl = str_replace( "'", "", $pwl );
    if ( $usname == "admin" && $pwl == "f123457" )
    {
        $_SESSION['admin'] = "ok";
        header( "Location:user.php" );
    }
    else
    {
        echo "<script>alert('用户名与密码不对！');window.location.href='javascript:history.back()'</script>密码不对";
        exit( );
    }
}
echo "<HTML><HEAD><TITLE>管理入口</TITLE>\r\n<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n<LINK href=\"../imgaes/style.css\" type=text/css rel=stylesheet>\r\n<META content=\"MSHTML 6.00.2900.3243\" name=GENERATOR>\r\n<BODY leftMargin=0 topMargin=0 rightMargin=0>\r\n<TABLE width=\"400\" height=60 border=0 align=\"center\" cellPadding=0 cellSpacing=0 \r\nbackground=../imgaes/t-bg.gif>\r\n  <TBODY>\r\n  <TR>\r\n    <TD width=\"401\" height=\"81\" align=center vAlign=center><A href=\"tencent://message/?uin=755882&Site=客服&Menu=yes\" target=\"blank\"></A></TD>\r\n  </TR>\r\n  <TR>\r\n    <TD vAlign=bottom align=middle height=35><TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n        <TBODY>\r\n        <TR>\r\n<TD bgColor=#ff0000 \r\nheight=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>\r\n\r\n\r\n<TABLE cellSpacing=0 cellPadding=0 width=\"400\" align=center border=0>\r\n  <TBODY>\r\n  <TR>\r\n    <TD>\r\n      <TABLE style=\"MARGIN-TOP: 5px\" height=24 cellSpacing=0 cellPadding=0 \r\n      width=\"100%\" align=center border=0>\r\n        <TBODY>\r\n        <TR>\r\n          <TD vAlign=top align=middle>\r\n            <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n              <TBODY>\r\n              <TR>\r\n                <TD width=13 height=12><IMG height=12 \r\n                  src=\"../imgaes/zhong-lt.jpg\" width=13></TD>\r\n                <TD background=../imgaes/zhong-ztbg.jpg><IMG \r\n                  height=12 src=\"../imgaes/zhong-ztbg.jpg\" \r\n                  width=13></TD>\r\n                <TD width=13 height=12><IMG height=12 \r\n                  src=\"../imgaes/zhong-rt.jpg\" \r\n              width=13></TD></TR></TBODY></TABLE>\r\n            <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n              <TBODY>\r\n              <TR>\r\n                <TD width=13 \r\n                  background=../imgaes/zhong-zzlbg.jpg><IMG \r\n                  src=\"../imgaes/zhong-zzlbg.jpg\" width=13></TD>\r\n                <TD align=middle bgColor=#ffffff class=\"f14\"><table width=\"100%\" border=\"1\" cellpadding=\"0\" cellspacing=\"1\" bordercolor=\"#FFFFFF\" bgcolor=\"#E3E3E3\">\r\n                    <tr>\r\n                      <td bgcolor=\"#FFFFFF\"><form name=\"form1\" method=\"post\" action=\"\">\r\n                        <table width=\"100%\" border=\"0\">\r\n                          <tr>\r\n                            <td>会员名称：</td>\r\n                            <td><label>\r\n                              <input type=\"text\" name=\"usname\">\r\n                            </label></td>\r\n                          </tr>\r\n                          <tr>\r\n                            <td>登陆密码：</td>\r\n                            <td><label>\r\n                            <input type=\"password\" name=\"pwl\">\r\n                            </label></td>\r\n                          </tr>\r\n                          <tr>\r\n                            <td>&nbsp;</td>\r\n                            <td><label>\r\n                              <input type=\"submit\" name=\"Submit\" value=\"登陆\">\r\n                              <input type=\"reset\" name=\"Submit2\" value=\"重置\">\r\n                            </label></td>\r\n                          </tr>\r\n                        </table>\r\n                                            </form>\r\n                      </td>\r\n                    </tr>\r\n                  </table>\r\n                  </TD>\r\n                <TD width=13 \r\n                  background=../imgaes/zhong-zzrbg.jpg><IMG \r\n                  src=\"../imgaes/zhong-zzrbg.jpg\" \r\n              width=13></TD></TR>\r\n              </TBODY></TABLE>\r\n            <TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n              <TBODY>\r\n              <TR>\r\n                <TD width=13 height=12><IMG height=12 \r\n                  src=\"../imgaes/zhong-lb.jpg\" width=13></TD>\r\n                <TD background=../imgaes/zhong-zbbg.jpg><IMG \r\n                  height=12 src=\"../imgaes/zhong-zbbg.jpg\" \r\n                  width=13></TD>\r\n                <TD width=13 height=12><IMG height=12 \r\n                  src=\"../imgaes/zhong-rb.jpg\" \r\n              width=13></TD></TR></TBODY></TABLE>\r\n            </TD>\r\n</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>\r\n<TABLE width=\"400\" height=1 border=0 align=\"center\" cellPadding=0 cellSpacing=0 bgcolor=\"#FFFFFF\">\r\n  <TBODY>\r\n    <TR>\r\n      <TD vAlign=bottom align=middle height=35><TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n          <TBODY>\r\n              <TR>\r\n                <TD bgColor=#999999 \r\nheight=2></TD>\r\n              </TR>\r\n          </TBODY>\r\n          </TABLE></TD>\r\n    </TR>\r\n  </TBODY>\r\n</TABLE>\r\n<CENTER></CENTER></BODY></HTML>\r\n";
?>
