From b759bba023252b17248258fefb421fe32bfb2806 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 30 Nov 2023 14:19:44 +0800 Subject: [PATCH] + zin: add the whitelist widget. --- lib/zin/func.php | 8 ++++++++ lib/zin/wg/whitelist/v1.php | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 lib/zin/wg/whitelist/v1.php diff --git a/lib/zin/func.php b/lib/zin/func.php index 1eb4968a24..322f2044a4 100644 --- a/lib/zin/func.php +++ b/lib/zin/func.php @@ -1839,3 +1839,11 @@ function mailto(): mailto { return createWg('mailto', func_get_args()); } + +/** + * whitelist widget. + */ +function whitelist(): whitelist +{ + return createWg('whitelist', func_get_args()); +} diff --git a/lib/zin/wg/whitelist/v1.php b/lib/zin/wg/whitelist/v1.php new file mode 100644 index 0000000000..f71109debb --- /dev/null +++ b/lib/zin/wg/whitelist/v1.php @@ -0,0 +1,21 @@ + + * @package zin + * @link http://www.zentao.net + */ +namespace zin; + +requireWg('users'); + +class whitelist extends users +{ + protected static array $defaultProps = array( + 'name' => 'whitelist[]' + ); +}