function sp_check_spammath($forumid) { # Spam Check $spamtest = array(); $spamtest[0] = false; $usemath = true; if (sp_get_auth('bypass_math_question', $forumid) == false) { $spamtest = sp_spamcheck(); } return $spamtest; }
function spa_register_error($errors) { global $spIsForum; $sflogin = sp_get_option('sflogin'); if ($sflogin['sfregmath']) { $spamtest = sp_spamcheck(); if ($spamtest[0] == true) { $errormsg = '<b>' . sp_text('ERROR') . '</b>: ' . $spamtest[1]; if ($spIsForum == false) { $errors->add('Bad Math', $errormsg); } else { $errors['math_check'] = $errormsg; } } } return $errors; }