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)) { //循环所有分组