}
}
// Is the password long enough?
- elseif (strlen($_POST['pass1']) < $_CONFIG['pass_len'])
+ elseif (strlen($_POST['pass1']) < getConfig('pass_len'))
{
// Too short!
$FORM_ERRORS[] = SPONSOR_PASSWORD_TOO_SHORT;
}
// Check if he has accepted the terms&conditions
- if (empty($_POST['terms']))
- {
+ if (empty($_POST['terms'])) {
// Homepage URL is empty
$FORM_ERRORS[] = SPONSOR_TERMS_NOT_ACCEPTED;
}
if (count($FORM_ERRORS) > 0) unset($_POST['ok']);
}
-if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0))
-{
+if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0)) {
// Generate message array
$MSGs = array(
'failed' => SPONSOR_REGISTRATION_FAILED,