From 6f2875cfba0af8efb2333cca6cab133ecac192f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Mon, 13 Jan 2025 10:02:35 +0800 Subject: [PATCH] =?UTF-8?q?php8.4=E6=8A=A5=E9=94=99=EF=BC=8C=E6=84=9F?= =?UTF-8?q?=E8=B0=A2=EF=BC=9A=E4=B9=96=E4=B9=96=E5=A5=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/member_operations.php | 3 ++- src/admin/statistics_list.php | 10 ++++++---- src/admin/templets/album_edit.htm | 2 +- src/admin/templets/archives_edit.htm | 2 +- src/admin/templets/archives_sg_edit.htm | 2 +- src/admin/templets/article_edit.htm | 2 +- src/admin/templets/soft_edit.htm | 2 +- src/system/helpers/channelunit.helper.php | 2 +- 8 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/admin/member_operations.php b/src/admin/member_operations.php index 9f419d9c..7c99b52e 100644 --- a/src/admin/member_operations.php +++ b/src/admin/member_operations.php @@ -14,7 +14,8 @@ DedeSetCookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); require_once(DEDEINC.'/datalistcp.class.php'); if (empty($buyid)) $buyid = ''; $buyid = HtmlReplace($buyid , 1); -$sta = HtmlReplace($sta , 1); +$sta = ''; //初始化$sta变量,感谢:乖乖女 +$sta = HtmlReplace($sta, 1); $addsql = " WHERE buyid LIKE '%$buyid%' "; if (!empty($sta)) $addsql .= " AND sta='$sta' "; $sql = "SELECT * FROM `#@__member_operation` $addsql ORDER BY aid DESC"; diff --git a/src/admin/statistics_list.php b/src/admin/statistics_list.php index 29e7031f..41467b60 100644 --- a/src/admin/statistics_list.php +++ b/src/admin/statistics_list.php @@ -24,13 +24,15 @@ function RenderUrlType($t) { return "综合"; } } -//检查权限 -if ($id == 0 && $reid == 0) { - CheckPurview('c_List'); +//检查权限,感谢:乖乖女 +if (isset($id) && isset($reid)) { + if ($id == 0 && $reid == 0) { + CheckPurview('c_List'); + } } $ip = isset($ip) ? HtmlReplace(trim($ip)) : ''; if (empty($mobile)) $mobile = ''; -if ($dopost == "delete") { +if (isset($dopost) && $dopost == "delete") { $ids = explode('`',$aids); $dquery = ""; foreach ($ids as $id) diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index e486529d..50272a24 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -23,7 +23,7 @@
diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm index b89574c3..8c8c504c 100644 --- a/src/admin/templets/archives_edit.htm +++ b/src/admin/templets/archives_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/archives_sg_edit.htm b/src/admin/templets/archives_sg_edit.htm index 413e87e9..c70a8ff1 100644 --- a/src/admin/templets/archives_sg_edit.htm +++ b/src/admin/templets/archives_sg_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/article_edit.htm b/src/admin/templets/article_edit.htm index 6a68f4a9..4d916c6e 100644 --- a/src/admin/templets/article_edit.htm +++ b/src/admin/templets/article_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index fbedb490..ce7d2525 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -37,7 +37,7 @@
diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index e9dfb5ed..b14f69c7 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -142,7 +142,7 @@ if (!function_exists('GetTypeUrl')) { if ($isdefault == -1) { if ($cfg_rewrite == 'Y') { //开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 - $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid.""; + $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid; } else { $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; }