mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 05:41:01 +00:00
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:
@@ -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 **** //
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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 – 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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user