diff --git a/register.php b/register.php index cd469a0..d294d98 100644 --- a/register.php +++ b/register.php @@ -36,7 +36,7 @@ if (empty($_POST) === false) { if ($isNoob) { $errors[] = 'This account name is blocked for registration.'; } - if ($config['ServerEngine'] !== 'OTHIRE' && $config['client'] >= 830) { + if ($config['client'] >= 830) { if (preg_match("/^[a-zA-Z0-9]+$/", $_POST['username']) == false) { $errors[] = 'Your account name can only contain characters a-z, A-Z and 0-9.'; } @@ -127,25 +127,14 @@ if (isset($_GET['success']) && empty($_GET['success'])) { } //Register - if ($config['ServerEngine'] !== 'OTHIRE') { - $register_data = array( - 'name' => $_POST['username'], - 'password' => $_POST['password'], - 'email' => $_POST['email'], - 'created' => time(), - 'ip' => getIPLong(), - 'flag' => $_POST['flag'] - ); - } else { - $register_data = array( - 'id' => $_POST['username'], - 'password' => $_POST['password'], - 'email' => $_POST['email'], - 'created' => time(), - 'ip' => getIPLong(), - 'flag' => $_POST['flag'] - ); - } + $register_data = array( + 'name' => $_POST['username'], + 'password' => $_POST['password'], + 'email' => $_POST['email'], + 'created' => time(), + 'ip' => getIPLong(), + 'flag' => $_POST['flag'] + ); user_create_account($register_data, $config['mailserver']); if (!$config['mailserver']['debug']) header('Location: register.php?success'); @@ -160,24 +149,23 @@ if (isset($_GET['success']) && empty($_GET['success'])) { ?>