芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/application/libraries/AppCaptcha.php
img_inline.'" alt="Captcha Image" />'; } static function getDefaultCapchaInputTag($input_class=''){ return '
'; } private static function getDefaultCapchaHtml_bs4($class='',$input_class=''){ $obj=self::getDefaultCapcha(); ob_start(); ?>
setBackgroundColor(255,255,255); $keystr=$captcha->getPhrase(); $width=35*$captchaLength; $captcha->build($width,50); $key=self::get_captcha_key($keystr); $ci=get_instance(); $ci->session->SetSession($key, $keystr); $_SESSION[$key]=$keystr; $obj=new stdClass(); $obj->key=$key; $obj->img_inline=$captcha->inline(); return $obj; } private static function capchaValid($capchaText){ $key=self::get_captcha_key($capchaText); $ci=get_instance(); $session_key=$ci->session->GetSession($key); if(!empty($session_key)){ $isOk=$session_key==$capchaText; $ci->session->UnsetSession($key); return $isOk; } AddError("Captcha Error"); return false; } }