From 68fd28ebbe3f972a4d66b1651a52ff75d74bcd50 Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Wed, 3 Aug 2022 18:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=A1=88=20=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20=E5=BA=97=E9=93=BA=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/define.php | 2 ++ control/index.php | 7 +++++++ view/templates/include/admin_leftmenu.html | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/config/define.php b/config/define.php index 05e3d65..d38fcc0 100644 --- a/config/define.php +++ b/config/define.php @@ -11,6 +11,8 @@ date_default_timezone_set("Asia/Shanghai"); + define('BEIAN', '鲁ICP备14002313号-1'); + define('LOG_PATH_BASE', DATACENTER_ROOT.'/logs/'); define('LOG_TRACK_SAVE_PATH', LOG_PATH_BASE.'track/%s/%s.log'); // 监控日志的路径,如2014-02-14/1(检测类型).log diff --git a/control/index.php b/control/index.php index f409f35..cfea969 100644 --- a/control/index.php +++ b/control/index.php @@ -214,4 +214,11 @@ class index extends publicBase { return $nlist; } + public function logout() { + unset($_SESSION['app_uid']); + unset($_SESSION['app_name']); + header('Location:/index'); + exit(); + } + } diff --git a/view/templates/include/admin_leftmenu.html b/view/templates/include/admin_leftmenu.html index 37fe5cb..06d2635 100644 --- a/view/templates/include/admin_leftmenu.html +++ b/view/templates/include/admin_leftmenu.html @@ -58,8 +58,8 @@
\ No newline at end of file