From 9ecce761ffbb9b98b9a9efa9ba2817ca893fe637 Mon Sep 17 00:00:00 2001 From: rainbowsoft Date: Tue, 10 Dec 2024 15:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0List=5FFilter=5FPlugin;?= =?UTF-8?q?=E8=B0=83=E6=95=B4login=E9=A1=B5=E9=9D=A2;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zb_system/function/c_system_plugin.php | 18 ++++++++++++++++++ zb_system/login.php | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/zb_system/function/c_system_plugin.php b/zb_system/function/c_system_plugin.php index 62f4a0d70..f7b51d9c3 100644 --- a/zb_system/function/c_system_plugin.php +++ b/zb_system/function/c_system_plugin.php @@ -232,6 +232,24 @@ function Remove_Filter_Plugin($plugname, $functionname) return false; } + +/** + * 获取Filter接口的全部挂载函数列表数组 + * + * @param string $plugname 接口名称 + * + * @return array + */ +function List_Filter_Plugin($plugname) +{ + if (isset($GLOBALS['hooks'][$plugname])) { + return $GLOBALS['hooks'][$plugname]; + } + + return array(); +} + + /** * 清除Filter接口的所有挂载函数 * diff --git a/zb_system/login.php b/zb_system/login.php index 81e21e632..95f2a64d8 100644 --- a/zb_system/login.php +++ b/zb_system/login.php @@ -45,7 +45,7 @@
option['ZC_LOGIN_VERIFY_ENABLE']) : ?> -
+
validcode