<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Util; use Module\Vendor\Provider\Captcha\CaptchaProvider; use Module\Vendor\Provider\Captcha\DefaultCaptchaProvider; class SecurityUtil { public static function registerCaptchaProvider() { goto jjJAW; tzAZa: if (empty($L1N0l)) { return null; } goto zZLFg; FcEb7: if ($oMd7I && $oMd7I instanceof DefaultCaptchaProvider) { return null; } goto Xjgpb; zZLFg: $oMd7I = CaptchaProvider::get($L1N0l); goto FcEb7; Xjgpb: $oMd7I->setParam('onValidate', 'window.__memberCheckCaptcha'); goto qbhey; qbhey: return $oMd7I; goto MAaW4; jjJAW: $L1N0l = modstart_config('Member_RegisterCaptchaProvider', null); goto tzAZa; MAaW4: } public static function loginCaptchaProvider() { goto M_bdX; zH75k: if (empty($L1N0l)) { return null; } goto bz7C5; opjSj: if ($oMd7I && $oMd7I instanceof DefaultCaptchaProvider) { return null; } goto YvLjv; M_bdX: $L1N0l = modstart_config('loginCaptchaProvider', null); goto zH75k; YvLjv: return $oMd7I; goto KvzA1; bz7C5: $oMd7I = CaptchaProvider::get($L1N0l); goto opjSj; KvzA1: } }