From aaf393aa68cd1f6850d49da36b18d8cdc236c7b2 Mon Sep 17 00:00:00 2001 From: LyLme Date: Sun, 22 May 2022 14:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 1 + template/5iux/index.php | 3 +-- template/baisu/list.php | 2 -- template/default/list.php | 2 -- template/lylme/list.php | 2 -- 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index a13a60f..96d7d74 100644 --- a/index.php +++ b/index.php @@ -3,5 +3,6 @@ if (!file_exists('install/install.lock')) exit('六零导航页 - 安装程序您还未安装,点击这里开始安装!'); include "./include/common.php"; +session_start(); include $template; ?> diff --git a/template/5iux/index.php b/template/5iux/index.php index 05f0c6d..11357df 100644 --- a/template/5iux/index.php +++ b/template/5iux/index.php @@ -43,8 +43,7 @@ if (!empty($q)) { else{ echo '';}?>
-query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); // 获取分类 $i = 0; diff --git a/template/baisu/list.php b/template/baisu/list.php index a601232..e955c4a 100644 --- a/template/baisu/list.php +++ b/template/baisu/list.php @@ -9,9 +9,7 @@ // | Authors: LyLme | // | date: 2022-05-01 | // +----------------------------------------------------------+ -session_start(); //设置session $groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); // 获取分类 - $i = 0; //设置起始 while ($group = $DB->fetch($groups)) { //循环所有分组 diff --git a/template/default/list.php b/template/default/list.php index 825a486..9c13978 100644 --- a/template/default/list.php +++ b/template/default/list.php @@ -9,8 +9,6 @@ // | Authors: LyLme | // | date: 2022-3-12 | // +----------------------------------------------------------+ - -session_start(); //设置session $groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); // 获取分类 $i = 0; //设置起始 while ($group = $DB->fetch($groups)) { //循环所有分组 diff --git a/template/lylme/list.php b/template/lylme/list.php index ecd8121..5d32b82 100644 --- a/template/lylme/list.php +++ b/template/lylme/list.php @@ -9,8 +9,6 @@ // | Authors: LyLme | // | date: 2022-3-12 | // +----------------------------------------------------------+ - -session_start(); //设置session $groups = $DB->query("SELECT * FROM `lylme_groups` ORDER BY `group_order` ASC"); // 获取分类 $i = 0; while ($group = $DB->fetch($groups)) { //循环所有分组