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', '