Winner check on register

Winner check on register
This commit is contained in:
Catalin Novgorodschi
2026-04-30 08:55:00 +03:00
parent 9ceee91529
commit 1ea6873826
6 changed files with 32 additions and 25 deletions
+7
View File
@@ -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);
}
+1
View File
@@ -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', '<li>The server has ended! No more registrations can be made.</li>');
define('TRIBE_EMPTY', '<li>Please choose a tribe.</li>');
define('AGREE_ERROR', '<li>You have to agree to the game rules and the general terms & conditions in order to register.</li>');
define('LOGIN_USR_EMPTY', 'Enter name.');