mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 18:16:09 +00:00
Winner check on register
Winner check on register
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user