Seperate captcha class

This commit is contained in:
Lastorder 2023-05-08 02:25:30 +00:00
parent bd44b4ef54
commit 1f67ccf673
3 changed files with 83 additions and 14 deletions

View file

@ -260,7 +260,7 @@ class spamfilterController extends spamfilter
if (count($target_actions))
{
include_once __DIR__ . '/spamfilter.lib.php';
include_once __DIR__ . '/drivers/' . $config->captcha->type . '.php';
spamfilter_captcha::init($config->captcha);
if (strncasecmp('proc', $obj->act, 4) === 0)