Got it!
weblogin.class.php, line 436 is in the wrong place, it should be line at 445, after the email check. You’ll see the mismatched braces
if ($_POST['username'] == '' || empty($_POST['username']) || trim($_POST['username']) == '' ) // pixelchutes
{
return $this->FormatMessage($this->LanguageArray[0]);
}
if ($regRequired !== '')
if ( strlen($_POST['email']) > 0 ) // pixelchutes
{
// Validate the email address.
$this->ValidateEmail($_POST['email']);
if (!empty($this->Report))
{
return $this->report;
}
}
{
$requiredFields = explode(',', str_replace(' ,', ',', $regRequired));
That should be:
if ($_POST['username'] == '' || empty($_POST['username']) || trim($_POST['username']) == '' ) // pixelchutes
{
return $this->FormatMessage($this->LanguageArray[0]);
}
if ( strlen($_POST['email']) > 0 ) // pixelchutes
{
// Validate the email address.
$this->ValidateEmail($_POST['email']);
if (!empty($this->Report))
{
return $this->report;
}
}
if ($regRequired !== '')
{
$requiredFields = explode(',', str_replace(' ,', ',', $regRequired));
I can’t imagine why that wasn’t flagged as a big PHP error!