ZBlogPHP::ShowValidCode PHP Method

ShowValidCode() public method

显示验证码
public ShowValidCode ( string $id = '' ) : mixed
$id string 命名事件
return mixed
    public function ShowValidCode($id = '')
    {
        foreach ($GLOBALS['hooks']['Filter_Plugin_Zbp_ShowValidCode'] as $fpname => &$fpsignal) {
            return $fpname($id);
            //*
        }
        $_vc = new ValidateCode();
        $_vc->GetImg();
        setcookie('captcha_' . crc32($this->guid . $id), md5($this->guid . date("Ymdh") . $_vc->GetCode()), null, $this->cookiespath);
    }
ZBlogPHP