更新 src/index.php

This commit is contained in:
jiangsir 2024-09-11 17:14:53 +08:00
parent 1963dee5b6
commit 6546581a69

View File

@ -4,9 +4,9 @@
<head>
<meta charset="UTF-8">
<title>登录</title>
<title>登录</title>
</head>
<p>这里是管理员登录入口</p>
<p>这里是管理员登录入口</p>
<form method="POST" action="">
Username: <input type="text" name="username"> <br>
Password: <input type="password" name="password"> <br>
@ -43,5 +43,4 @@ if (!empty($_COOKIE["check"])) {
die ("Admins only");
}
}
setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7));
setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7));