21,892
社区成员
发帖
与我相关
我的任务
分享
<?php
include "conn.php";
include "admin_header.php";
session_start();
if($_SESSION["admin_name"]==""&&$_SESSION["admin_pass"]==""){
session_write_close();
header("Location:index.php");
}
?>
<?php
//用户身份验证
session_start();
include "conn.php";
include "header.php";
extract($_POST);
if ($admin_name!=$admin || $admin_pass!=$pass_admin)
{
echo"<p align=\"center\"><font color=\"#FF0000\"><b><big>请确认用户名和密码是否正确</big></b></font></p>";
echo("<HTML><META http-equiv=\"refresh\" content =\"1;url=admin.php\"></HTML>");
exit;
}
else
{
$_SESSION["admin_name"]=$admin_name;
$_SESSION["admin_pass"]=$admin_pass;
echo("<HTML><META http-equiv=\"refresh\" content =\"0;url=result.php\"></HTML>");
exit;
}
include "foot.php";
?>