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:
novgorodschi catalin
2026-07-16 11:09:48 +03:00
parent 37e845a4d6
commit c7ba50036f
27 changed files with 2450 additions and 115 deletions
+10
View File
@@ -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