欢迎来到天天文库
浏览记录
ID:38391794
大小:35.00 KB
页数:9页
时间:2019-06-11
《php学生成绩管理系统 基于php的学生信息管理系统_图文》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、php学生成绩管理系统基于php的学生信息管理系统_图文导读:就爱阅读网友为您分享以下“基于php的学生信息管理系统_图文”的资讯,希望对您有所帮助,感谢您对92to.com的支持!//调整系统函数时间为中国上海+8区时间date_default_timezone_set(PRC);//设置全局变量$t->set_var(array("PutTime"=>date("Y-m-dg:iA",time()),"PutTitle"=>$g_configuration[title],9&quo
2、t;PutEmail"=>$g_configuration[email],"putuser"=>$sessionname,"PutCopyright"=>$g_configuration[copyright],"PutUrl"=>$g_configuration[url]));//加载用户界面模版页面$t->set_file(array("spdpmuser"=>"spdpmuser.htm","serdpm
3、user"=>"serdpmuser.htm","scanscl"=>"scanscl.htm","scangrade"=>"scangrade.htm","spcdpmuser"=>"spcdpmuser.htm","spoffuser"=>"spoffuser.htm",9"teacher"=>"teach
4、er.htm","student"=>"student.htm",));//加载登陆模版$t->set_file("login","login.htm");////////////////////////学生用户登陆////////////////////////////////if($submit){checksql($username);//过滤SQL注入$username=htmlspecialchars(trim($username));//格式化htm
5、l代码$password=md5(trim($password));//密码进行MD5加密if(""==$username
6、
7、""==$password)9//检测用户名和密码是否为空{message("用户名和密码不能为空!","#"onclick="window.history.go(-1);returnfalse;");}if(strlen($password)>50
8、
9、strlen($password)<6)//检测密码长度是否符合规定{m
10、essage("您输入的密码长度错误,请重新输入!t;button"));if('2'==$result['button_value']or'1'==$result['button_value']){message("系统关闭","./cancel.php");}//检测用户名和密码是否正确$result=$DB->fetch_array($DB->query("select*from".$db_prefix
11、."userwhereuser_number='$username'anduser_password='$password'"));if($result){//正确的话保存session}$_SESSION['username']=$username;$_SESSION['password']=$password;9$_SESSION['group_id']="8";message("登陆成功,欢迎您使用学生信息管理系统!"
12、,"./stu
此文档下载收益归作者所有