dashboard/login.php
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
require_once 'include/config.inc.php';
$msg = '请认真填写账号信息.';
//if (isset($_SESSION['login_user'])) {
// echo '<script>
// location.href = "index.php";
// </script>';
//} else {
if ($_POST) {
if (empty($_POST['username']) || empty($_POST['password'])) {
$msg = '表单输入有误.';
} else {
$sql = 'SELECT * FROM m_users WHERE 1=1 AND username="' . $_POST['username'] . '" AND password="' . md5($_POST['password']) . '"';
$data = $db->execute_dql($sql);
//更新数据库
if (count($data)==1) {
$row = $data[0];
$_SESSION['login_user'] = $row;
$_SESSION['username'] = $row['username'];
$_SESSION['userid'] = $row['id'];
$_SESSION['usertype'] = $row['type'];
$_SESSION['qq'] = $row['qq'];
$_SESSION['thumb'] = $row['thumb'];
$sql2 = 'update m_users set updated="'.date("y-m-d",time()).'" where id='.$_SESSION['userid'];
if($db->execute_dml($sql2)){
}
echo '<script>
location.href = "../index.php";
</script>';
} else {
$sql2 = 'SELECT * FROM yh WHERE 1=1 AND username="' . $_POST['username'] . '" AND password="' .$_POST['password']. '"';
$data2 = $db->execute_dql($sql2);
if (count($data2)==1) {
$row2 = $data2[0];
$_SESSION['login_user'] = $row2;
$_SESSION['username'] = $row2['username'];
$_SESSION['userid'] = $row2['id'];
$_SESSION['usertype'] = '2';
echo '<script>
location.href = "../index.php";
</script>';
} else {
$msg = '用户名或者密码错误,Try Again!';
}
}
}
// }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
后面还有 222 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。