diff --git a/GameEngine/Account.php b/GameEngine/Account.php index 0f320645..cd93ddc4 100755 --- a/GameEngine/Account.php +++ b/GameEngine/Account.php @@ -62,6 +62,13 @@ class Account { private function Signup() { global $database,$form,$mailer,$generator,$session; + + // ==================== VERIFICARE WINNER ==================== + $sql = mysqli_query($database->dblink, "SELECT 1 FROM " . TB_PREFIX . "fdata WHERE f99 = '100' AND f99t = '40' LIMIT 1"); + $winner = mysqli_fetch_row($sql); + if ($winner) { + $form->addError("winner", WINNER_ERROR); + } if(!isset($_POST['name']) || trim($_POST['name']) == "") { $form->addError("name",USRNM_EMPTY); } diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php index 829ddab0..a9ce4574 100755 --- a/GameEngine/Lang/en.php +++ b/GameEngine/Lang/en.php @@ -57,6 +57,7 @@ define('PW_INSECURE', '(Password insecure. Please choose a more secure one.)'); define('EMAIL_EMPTY', '(Email Empty)'); define('EMAIL_INVALID', '(Invalid email address)'); define('EMAIL_TAKEN', '(Email is already in use)'); +define('WINNER_ERROR', '
  • The server has ended! No more registrations can be made.
  • '); define('TRIBE_EMPTY', '
  • Please choose a tribe.
  • '); define('AGREE_ERROR', '
  • You have to agree to the game rules and the general terms & conditions in order to register.
  • '); define('LOGIN_USR_EMPTY', 'Enter name.'); diff --git a/anmelden.php b/anmelden.php index 5feea0f2..2f9f0470 100644 --- a/anmelden.php +++ b/anmelden.php @@ -115,6 +115,7 @@ if(REG_OPEN == true){ ?>