This commit is contained in:
icret
2023-04-12 15:30:49 +08:00
parent 9a3780a0ee
commit 55a7c2e51a
11 changed files with 51 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ require_once '../app/header.php';
require_once APP_ROOT . '/app/chart.php';
// 检测是否开启统计
if (!$config['chart_on']) exit(header('Location: ' . $config['domain'] . '?chart#closed'));
if (!$config['chart_on'] || !is_who_login('admin')) exit(header('Location: ' . $config['domain'] . '?hart#closed'));
// 检测登录
if (!is_who_login('admin')) {