<?php
	  session_start();
include 'config.php';
$pass = trim($_POST['pass']);//
if($pass== constant("PWD")){
 $_SESSION['is_login']="1";
echo"<script language='javascript'>location.href='admin.php'</script>";
}else{
$_SESSION['is_login']='';
	   ?>
	  
<html>
<title>login in</title>
<body>
<div id="login"> 
      <h3>ÓÃ»§µÇÂ¼</h3> 
     <form action='' method='post'>
          <p><label>ÃÜ Âë£º</label> <input type="password" class="input" name="pass" id="pass" /> </p> 
          <div class="sub"> 
              <input type="submit" class="btn" value="µÇ Â¼" /> 
          </div> 
</form>
	  </div>
	  
</body>
</html> 
<?php
}
 ?>