Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold

Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold
This commit is contained in:
novgorodschi catalin
2026-07-15 14:23:05 +03:00
parent 1925f45001
commit b87cf27396
23 changed files with 1798 additions and 8 deletions
+2
View File
@@ -340,6 +340,8 @@ define("NEW_FUNCTION_TRIBE_HUNS", %NEW_FUNCTION_TRIBE_HUNS%);
define("NEW_FUNCTION_TRIBE_EGIPTEANS", %NEW_FUNCTION_TRIBE_EGIPTEANS%);
define("NEW_FUNCTION_TRIBE_SPARTANS", %NEW_FUNCTION_TRIBE_SPARTANS%);
define("NEW_FUNCTION_TRIBE_VIKINGS", %NEW_FUNCTION_TRIBE_VIKINGS%);
define("NEW_FUNCTION_REGISTRATION_GOLD", %NEW_FUNCTION_REGISTRATION_GOLD%);
define("NEW_FUNCTION_REGISTRATION_GOLD_VALUE", %NEW_FUNCTION_REGISTRATION_GOLD_VALUE%);
//////////////////////////////////////////
// **** DO NOT EDIT SETTINGS **** //
+2
View File
@@ -176,6 +176,8 @@ class Process {
$findReplace["%NEW_FUNCTION_TRIBE_EGIPTEANS%"] = $_POST['new_function_tribe_egipteans'];
$findReplace["%NEW_FUNCTION_TRIBE_SPARTANS%"] = $_POST['new_function_tribe_spartans'];
$findReplace["%NEW_FUNCTION_TRIBE_VIKINGS%"] = $_POST['new_function_tribe_vikings'];
$findReplace["%NEW_FUNCTION_REGISTRATION_GOLD%"] = $_POST['new_function_registration_gold'];
$findReplace["%NEW_FUNCTION_REGISTRATION_GOLD_VALUE%"] = $_POST['new_function_registration_gold_value'];
fwrite($gameConfig, str_replace(array_keys($findReplace), array_values($findReplace), $text));
+7 -2
View File
@@ -212,7 +212,9 @@ $mechs = [
'new_function_tribe_huns' => 'New Tribe: Huns',
'new_function_tribe_egipteans' => 'New Tribe: Egyptians',
'new_function_tribe_spartans' => 'New Tribe: Spartans',
'new_function_tribe_vikings' => 'New Tribe: Vikings'
'new_function_tribe_vikings' => 'New Tribe: Vikings',
'new_function_tribe_vikings' => 'New Tribe: Vikings',
'new_function_registration_gold' => 'Registration Bonus Gold'
];
foreach($mechs as $k => $l){
@@ -226,7 +228,10 @@ foreach($mechs as $k => $l){
</div>";
}
?>
<div style='display:flex;flex-direction:column;gap:4px;margin-top:4px;'>
<label>Registration Bonus Gold &ndash; amount (used only when the toggle above is true)</label>
<input class='input' type='number' min='0' step='1' name='new_function_registration_gold_value' id='new_function_registration_gold_value' value='200'>
</div>
</div>
</div>