
07-05-2010, 01:22 PM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Louva-Deus
Code:
// $errors = vb 3.0.0+ support
// $userdata->errors = vb 3.6.1-4.0.x support
if (empty($errors) AND empty($userdata->errors))
{
$sfsPurged = false;
require_once('includes/functions_vbsfs.php');
sfsProcess();
}
This allows vB to operate like it normally would when handling registration attempts and only passes data on to the vbStopForumSpam mod if the registration form has been filled out properly. This clears a lot of nonsense from the log records and it saves lookup time and server resources. It might even save the Stop Forum Spam website a little bandwidth.
Finally, this helps to reduce any accidental blocking of legitimate users from registering on your site, either locally or through being mistakenly added to the Stop Forum Spam database, which lists email as well as IP addresses. Remember that virtually none of the people added by mistake will know to come to the Stop Forum Spam website to get their information removed so they can register on a forum they want to join.
HTH
LD
|
Shouldn't this:
Code:
if (empty($errors) AND empty($userdata->errors))
be this?
Code:
if (empty($errors) OR empty($userdata->errors))
|