php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -6,7 +6,7 @@ include_once('captcha.lib.php');
|
||||
while(true){
|
||||
$keystring='';
|
||||
for($i=0;$i<$length;$i++){
|
||||
$keystring.=$allowed_symbols{mt_rand(0,strlen($allowed_symbols)-1)};
|
||||
$keystring.=$allowed_symbols[mt_rand(0,strlen($allowed_symbols)-1)];
|
||||
}
|
||||
if(!preg_match('/cp|cb|ck|c6|c9|rn|rm|mm|co|do|cl|db|qp|qb|dp|ww/', $keystring)) break;
|
||||
}
|
||||
@ -14,5 +14,4 @@ while(true){
|
||||
set_session("ss_captcha_count", 0);
|
||||
set_session("ss_captcha_key", $keystring);
|
||||
$captcha = new KCAPTCHA();
|
||||
$captcha->setKeyString(get_session("ss_captcha_key"));
|
||||
?>
|
||||
$captcha->setKeyString(get_session("ss_captcha_key"));
|
||||
Reference in New Issue
Block a user