Home  >  Article  >  php教程  >  杏林同学录(八)

杏林同学录(八)

WBOY
WBOYOriginal
2016-06-13 12:39:331050browse

班级管理部分:
   首页:superadmin.php
include ("class/config.php");
if ($superadmin){      //如果已经进行管理员登陆,进行密码验证
  if (!($supername==$supervisor)||!($superpass==$superpsw)){  
   echo "密码错误";
   exit;
   }else{ //用session记录管理员登陆
   session_start(); // 开始session
   session_register("superlogin");
   $superlogin=$supername;   
   }
}else{              //管理员登陆
echo "

";
echo "
请输入管理员密码
";
echo "管理员";  
echo "
";
echo "密码";
echo "
";
echo "
";
echo "
";   
echo "
";
exit;
}
?>


班级管理




 



    
    
  
    
    

      
杏林同学录(八)

    
  
      
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn