| }
public function getErrorText($sfsSettingsEnabled) { global $mybb, $lang;
foreach($sfsSettingsEnabled as $setting) { if($setting == 'stopforumspam_check_usernames' && $mybb->settings[$setting]) { $settingsenabled[] = $lang->sfs_error_username; continue; }
if($setting == 'stopforumspam_check_emails' && $mybb->settings[$setting]) { $settingsenabled[] = $lang->sfs_error_email; continue; }
if($setting = 'stopforumspam_check_ips' && $mybb->settings[$setting]) { $settingsenabled[] = $lang->sfs_error_ip; continue; } }
if(sizeof($settingsenabled) > 1) { $lastsetting = $settingsenabled[sizeof($settingsenabled)-1]; unset($settingsenabled[sizeof($settingsenabled)-1]);
$stopforumspamerror = implode($lang->comma, $settingsenabled) . " {$lang->sfs_error_or} " . $lastsetting; } else { $stopforumspamerror = $settingsenabled[0]; } return $stopforumspamerror;
|