From 130905868e6345bfb7b93d301df01305010da155 Mon Sep 17 00:00:00 2001 From: rainbowsoft Date: Thu, 12 Dec 2024 18:49:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86GetGuestIP=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E9=BB=98=E8=AE=A4=E4=BC=9A=E8=AF=BB?= =?UTF-8?q?=E5=8F=96remote=5Faddr;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zb_system/defend/default/external-link.php | 2 +- zb_system/function/c_system_common.php | 4 +++- zb_system/login.php | 4 ++-- zb_users/plugin/AdminColor/include.php | 10 +++++----- zb_users/plugin/AdminColor/plugin.xml | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/zb_system/defend/default/external-link.php b/zb_system/defend/default/external-link.php index 787c111a2..cc6703a82 100644 --- a/zb_system/defend/default/external-link.php +++ b/zb_system/defend/default/external-link.php @@ -2,7 +2,7 @@ - + diff --git a/zb_system/function/c_system_common.php b/zb_system/function/c_system_common.php index b8c943240..8c77e2ed5 100644 --- a/zb_system/function/c_system_common.php +++ b/zb_system/function/c_system_common.php @@ -421,7 +421,9 @@ function GetGuestIP() $user_ip = null; - if ($zbp->option['ZC_USING_CDN_GUESTIP_TYPE'] != 'REMOTE_ADDR') { + if ($zbp->option['ZC_USING_CDN_GUESTIP_TYPE'] == '') { + $user_ip = GetVars("REMOTE_ADDR", "SERVER"); + } else { $user_ip = GetVars($zbp->option['ZC_USING_CDN_GUESTIP_TYPE'], "SERVER"); } diff --git a/zb_system/login.php b/zb_system/login.php index 3e6e19ac7..e58993626 100644 --- a/zb_system/login.php +++ b/zb_system/login.php @@ -13,10 +13,10 @@ Redirect302('cmd.php?act=admin'); } ?> - + - + diff --git a/zb_users/plugin/AdminColor/include.php b/zb_users/plugin/AdminColor/include.php index 0aea65b8c..0ab373ab9 100644 --- a/zb_users/plugin/AdminColor/include.php +++ b/zb_users/plugin/AdminColor/include.php @@ -68,26 +68,26 @@ function AdminColor_Css() list($fontsize, $leftwidth, $rightwidth, $background_positionX, $background_color) = AdminColor_GetValue(); - echo '' . "\r\n"; + echo '' . "\r\n"; if ($zbp->Config('AdminColor')->ColorID < 10) { Add_Filter_Plugin('Filter_Plugin_Admin_LeftMenu', 'AdminColor_Add_Button'); $hm = GetVars('admincolor_hm', 'COOKIE'); if ($hm == '1') { - echo ''; }else{ - echo ''; + echo ''; } } elseif ($zbp->Config('AdminColor')->ColorID == 10) { Add_Filter_Plugin('Filter_Plugin_Admin_LeftMenu', 'AdminColor_Add_Button'); $hm = GetVars('admincolor_hm', 'COOKIE'); if ($hm == '1') { - echo ''; + echo ''; }else{ - echo ''; + echo ''; } } diff --git a/zb_users/plugin/AdminColor/plugin.xml b/zb_users/plugin/AdminColor/plugin.xml index e2cd39612..2d12827f0 100644 --- a/zb_users/plugin/AdminColor/plugin.xml +++ b/zb_users/plugin/AdminColor/plugin.xml @@ -21,7 +21,7 @@ 151935 5.6 2013-07-07 -2021-11-30 +2024-11-30 0 5.2