增加前端上传签名

This commit is contained in:
icret
2023-03-05 21:46:49 +08:00
parent f311863c73
commit b620eb412b
6 changed files with 53 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ require_once __DIR__ . '/function.php';
// 非管理员不可访问!
if (!is_who_login('admin')) exit('Permission denied');
// 禁止直接访问
if (empty($_REQUEST['pass']) || $_REQUEST['pass'] !== md5($config['password'] . date('ymdh'))) exit('Authentication error!');
if (empty($_REQUEST['sign']) || $_REQUEST['sign'] !== md5($config['password'] . date('ymdh'))) exit('Authentication error!');
// 登录日志
if (isset($_GET['login_log'])) {