From c20ab08464c3f80eb1a74da3e7e056bba08f71e4 Mon Sep 17 00:00:00 2001 From: 006lp <144674902+006lp@users.noreply.github.com> Date: Wed, 17 Jul 2024 23:08:36 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.在文件顶部添加 session_start() 函数 2.检查并确保所有使用 $_SESSION 的地方都有定义和初始化检查 3.确保在适当的位置初始化 $_SESSION["isPageArchive"] --- includes/header.php | 368 ++++++++++++++++++++++++++-------------------------- 1 file changed, 187 insertions(+), 181 deletions(-) diff --git a/includes/header.php b/includes/header.php index a35fdc9..16b2d59 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,184 +1,190 @@ - - options->navStyle==1): ?>
- - - -
- - user->hasLogin()): ?> -

-

 user->screenName); ?>

-

- -
-

- - -
+ + + +
+ + user->hasLogin()): ?> +

+

 user->screenName); ?>

+

+ +
+

+ + + - -
- -
- - - options->navStyle==0): ?> - -
- -

- - -
+ ?>"> + + + + - - - - - - options->navStyle==0): ?> - - - options->navStyle==1): ?> - - - - - - -
-
- - is('post') || $this->is('page')): ?> -
+ +options->navStyle==0): ?> + +
+ +

+ + +
+ + + + + + +options->navStyle==0): ?> + + +options->navStyle==1): ?> + + + + + + +
+
+ + is('post') || $this->is('page')): ?> +
-- cgit v1.2.3