更新 src/index.php
This commit is contained in:
parent
b8061fce7f
commit
591d7d6681
@ -4,9 +4,9 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>登录</title>
|
||||
<title>登录</title>
|
||||
</head>
|
||||
<p>这里ć<EFBFBD>?管ç<EFBFBD>†ĺ‘<EFBFBD>登录入ĺŹ?</p>
|
||||
<p>管理员登录入口</p>
|
||||
<form method="POST" action="">
|
||||
Username: <input type="text" name="username"> <br>
|
||||
Password: <input type="password" name="password"> <br>
|
||||
@ -36,12 +36,13 @@ if (!empty($_COOKIE["check"])) {
|
||||
die ("The flag is ". $flag);
|
||||
}
|
||||
else {
|
||||
die ("Wrong Cookies. Get out!");
|
||||
die ("NoNoNo");
|
||||
}
|
||||
}
|
||||
else {
|
||||
die ("Admins only");
|
||||
die ("you are not admin");
|
||||
}
|
||||
}
|
||||
|
||||
setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7));
|
||||
setcookie("ahash", md5($secret . urldecode("admin" . "admin")), time() + (60 * 60 * 24 * 7));
|
||||
#f7fa8882c893a3f48f3cecdaa2f52102
|
Loading…
x
Reference in New Issue
Block a user