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