<?php
include "user.php";

$user = $_COOKIE['AnYue_Admin_User'];
$pass = $_COOKIE['AnYue_Admin_Pass'];

if ($user != $username or $pass != $password){
header("refresh:0;url=./login.php");
}else{
?>
<html>
<head>
<title>后台管理中心 - 暗月挂Q</title>
<meta http-equiv=Content-Type content=text/html;charset=gb2312>
</head>
<frameset rows="64,*"  frameborder="NO" border="0" framespacing="0">
	<frame src="admin_top.php" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
  <frameset cols="200,*"  rows="560,*" id="frame">
	<frame src="left.php" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
	<frame src="right.php" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
  </frameset>
</frameset>
<noframes>
  <body></body>
</noframes>
</html>
<?php } ?>