|
|
@ -215,8 +215,17 @@ if ($config->webui->index->enabled) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$captcha = new \Gregwar\Captcha\CaptchaBuilder(); |
|
|
|
$captcha = new \Gregwar\Captcha\CaptchaBuilder( |
|
|
|
$captcha->setBackgroundColor(46, 52, 54); |
|
|
|
$config->webui->captcha->length, |
|
|
|
|
|
|
|
$config->webui->captcha->phrase |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$captcha->setBackgroundColor( |
|
|
|
|
|
|
|
$config->webui->captcha->background->r, |
|
|
|
|
|
|
|
$config->webui->captcha->background->g, |
|
|
|
|
|
|
|
$config->webui->captcha->background->b |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$captcha->build(); |
|
|
|
$captcha->build(); |
|
|
|
|
|
|
|
|
|
|
|
$_SESSION['captcha'] = $captcha->getPhrase(); |
|
|
|
$_SESSION['captcha'] = $captcha->getPhrase(); |
|
|
|