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) : ?>