效果: 配置名称:code_plugin_yuzhe_hook {hookinput:mobileemailhidden,注册邮箱,设置注册邮箱不为手机邮箱时提示信息,hidden}{/hookinput} {hookinput:mobileemail,提示内容,,text}必须使用手机邮箱{/hookinput} global $_G; $judgeforum = CURSCRIPT=='forum' && CURMODULE=='ajax' && $_GET['action']=='checkemail'; $judgemember = CURSCRIPT=='member' && CURMODULE=='register' && $_GET['regsubmit']=='yes'; $emailinputname = ''; if ($judgeforum || $judgemember){ if ($judgemember) { $emailinputname = $_GET[$_G['setting']['reginput']['email']]; }else{ $emailinputname = $_GET['email']; } if (!preg_match("/^(\+)?1\d{10}@([A-Za-z0-9\-]+[.][A-Za-z0-9\-.]+)$/", $emailinputname)){ showmessage('{hookvalue:mobileemail}', '', array(), array('handle' => false)); } } |
插件介绍:雨哲超强嵌入点 插件是一款平台插件,通过后台添加在前台显示(基于模板的hook位置)指定内容的功能。
GMT+8, 2024-5-20 19:51 , Processed in 0.056064 second(s), 9 queries , Xcache On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.