From 55a7c2e51abf08c4f2238cf7247891c4cccc5b31 Mon Sep 17 00:00:00 2001 From: icret Date: Wed, 12 Apr 2023 15:30:49 +0800 Subject: [PATCH] v2.8.1 --- admin/chart.php | 2 +- admin/zui.chart.php | 2 +- app/check.php | 4 ++++ app/check_admin.inc.php | 4 ++++ app/footer.php | 1 + app/function.php | 2 +- app/total_files.php | 3 +++ app/upload.php | 7 ++++--- docs/update.md | 6 ++++++ index.php | 2 +- public/static/EasyImage.js | 26 +++++++++++++++++++++++++- 11 files changed, 51 insertions(+), 8 deletions(-) diff --git a/admin/chart.php b/admin/chart.php index 80e6b85..9aaffa4 100755 --- a/admin/chart.php +++ b/admin/chart.php @@ -6,7 +6,7 @@ require_once '../app/header.php'; require_once APP_ROOT . '/app/chart.php'; // 检测登录和是否开启统计 -if (!$config['chart_on'] && !is_who_login('admin')) exit(header('Location: ' . $config['domain'] . '?hart#closed')); +if (!$config['chart_on'] || !is_who_login('admin')) exit(header('Location: ' . $config['domain'] . '?hart#closed')); // 删除统计文件 if (isset($_POST['del_total'])) { diff --git a/admin/zui.chart.php b/admin/zui.chart.php index 5c28227..38f68dc 100755 --- a/admin/zui.chart.php +++ b/admin/zui.chart.php @@ -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')) { diff --git a/app/check.php b/app/check.php index 9af5a44..8f4bb81 100644 --- a/app/check.php +++ b/app/check.php @@ -1,4 +1,8 @@ window.location.href="' . get_whole_url('/') . '/install/index.php"'); diff --git a/app/check_admin.inc.php b/app/check_admin.inc.php index 536fc0e..7620d79 100644 --- a/app/check_admin.inc.php +++ b/app/check_admin.inc.php @@ -1,4 +1,8 @@ 0) : ?>