mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 01:56:07 +00:00
Add (Admin Panel) : Multi-account detection, Push protection, Heatmap, Gold Shop and Blacklist user names
Add (Admin Panel) : Multi-account detection, Push protection, Heatmap, Gold Shop (redem codes), Blacklist user names and Quest Editor + fix some php notice Fix quest_core for mission 33,36, train 2 units, etc (NEW TRIBE) There are some temporary bugs that will be fixed in next commit (pagination for new heatmap, quest reward)
This commit is contained in:
@@ -98,6 +98,11 @@ class Account {
|
||||
$form->addError("name", USRNM_TAKEN);
|
||||
} elseif (User::exists($database, $_POST['name'])) {
|
||||
$form->addError("name", USRNM_TAKEN);
|
||||
} elseif (class_exists('RegBlock') && RegBlock::isBlockedName($database, $_POST['name'])) {
|
||||
// Registration blocklist (admin: blockReg).
|
||||
$form->addError("name", defined('REG_BLOCKED_NAME')
|
||||
? REG_BLOCKED_NAME
|
||||
: 'This username is not allowed. Please choose another.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,6 +124,11 @@ class Account {
|
||||
$form->addError("email", EMAIL_INVALID);
|
||||
} elseif (User::exists($database, $_POST['email'])) {
|
||||
$form->addError("email", EMAIL_TAKEN);
|
||||
} elseif (class_exists('RegBlock') && RegBlock::isBlockedEmail($database, $_POST['email'])) {
|
||||
// Registration blocklist: exact address or whole domain (admin: blockReg).
|
||||
$form->addError("email", defined('REG_BLOCKED_EMAIL')
|
||||
? REG_BLOCKED_EMAIL
|
||||
: 'Registration with this e-mail address or domain is not allowed.');
|
||||
}
|
||||
|
||||
// Tribe
|
||||
|
||||
Reference in New Issue
Block a user