更新 src/index.php
This commit is contained in:
parent
1963dee5b6
commit
6546581a69
@ -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));
|
Loading…
x
Reference in New Issue
Block a user