Skip to content

Commit

Permalink
增加List_Filter_Plugin;调整login页面;
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowsoft committed Dec 10, 2024
1 parent 5e86675 commit 9ecce76
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions zb_system/function/c_system_plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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接口的所有挂载函数
*
Expand Down
2 changes: 1 addition & 1 deletion zb_system/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<dd class="password"><label for="edtPassWord"><?php echo $lang['msg']['password']; ?></label><input type="password" id="edtPassWord" name="edtPassWord" size="20" tabindex="2" /></dd>

<?php if ($zbp->option['ZC_LOGIN_VERIFY_ENABLE']) : ?>
<dd class="validcode"><label for="edtValidcode"><?php echo $lang['msg']['validcode']; ?></label><input type="text" maxlength="<?php echo $zbp->option['ZC_VERIFYCODE_LENGTH']; ?>" id="edtValidcode" name="verify" size="20" tabindex="2" />
<dd class="validcode"><label for="edtValidcode"><?php echo $lang['msg']['validcode']; ?></label><input type="text" maxlength="<?php echo $zbp->option['ZC_VERIFYCODE_LENGTH']; ?>" id="edtValidcode" name="verify" size="20" tabindex="10" />
<img src="<?php echo $zbp->host; ?>zb_system/script/c_validcode.php?id=login&time=m" onClick="javascript:this.src='<?php echo $zbp->host; ?>zb_system/script/c_validcode.php?id=login&time=m&tm='+Math.random();" alt="validcode"/>
</dd>
<?php endif; ?>
Expand Down

0 comments on commit 9ecce76

Please sign in to comment.