📄 login.php
字号:
<?
session_start();
require"./inc/func.php";
if($admin!=$admin_usn)
{
echo "测试阶段,考虑本站安全因素仅对外公开文章添加功能,日内提供源代码下载!";
exit;
}
if($sub)
{
$name=strtolower($name);
$password=strtolower($password);
$name=htmlspecialchars($name);
$password=htmlspecialchars($password);
if ($name==$admin_usn && $password==$admin_pwd)
{
session_register("sess_0230a09a07cab1df8112d00b1f9a9719");
$sess_0230a09a07cab1df8112d00b1f9a9719=$sess;
redir("manager.php");
exit;
}
else
$err= "用户名、密码错误";
}
require "./inc/header.inc";
?>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<?php echo $err;?>
<form method="post" action="<?php echo $php_self;?>">
<table width=90% border=0 cellspacing="1" bgcolor="#000000">
<tr align=center>
<td align=center colspan=4 width=652 bgcolor="#336699">
<p><font color="#FFFFFF">用户登陆 <a href=index.php>首页</a></font>
</td>
</tr>
<tr align=center>
<td align=center width=18% bgcolor="#F7F7F7">
<p align="center">账号:</p>
</td>
<td align=center bgcolor="#F7F7F7" width="32%">
<input type=text name=name size=20 >
</td>
<td align=center bgcolor="#F7F7F7" width="18%">密码:</td>
<td align=center bgcolor="#F7F7F7" width="32%">
<input type=password name=password size=20 >
</td>
</tr>
<tr align="center">
<td align="center" colspan="4" width="652" bgcolor="#F7F7F7">
<div align="center">
<p>
<input type="submit" name="sub" value="发送信息">
<input type="reset" value="重新来过" name="del">
</div>
</td>
</tr>
</table>
</form></div>
<?require "./inc/footer.inc";?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -