📄 login.php
字号:
<?require("functions.php");if(!$UserName){ $msg="error login"; header("Location:error.php?msg=".$msg); exit;}$conn=DBConnect();$sql="select * from links_users where name='".$UserName."'";$result=mysql_query($sql,$conn);DBClose($conn);if(!($obj=mysql_fetch_object($result))){ $msg="error username"; header("Location:error.php?msg=".$msg); exit;}if($obj->password!=$Password){ $msg="error password"; header("Location:error.php?msg=".$msg); exit;}if(!(setcookie("UserID",$obj->id))){ $msg="error ucookie"; header("Location:error.php?msg=".$msg); exit;}header("Location:".(isset($refer)?$refer:"default.php"));exit;?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -