Update Readme

Update Readme
This commit is contained in:
Catalin Novgorodschi
2026-05-15 08:17:14 +03:00
parent 3804498ad9
commit 01474fb31f
28 changed files with 116 additions and 56 deletions
+3 -3
View File
@@ -732,7 +732,7 @@ class Alliance {
}
// === NOU: nu poți da kick fondatorului ===
if ($database->isAllianceOwner($targetUID) == $allyId) {
$form->addError("perm", "You cannot expel the alliance founder.");
$form->addError("perm", CANT_REMOVE_LEADER);
return;
}
@@ -823,7 +823,7 @@ class Alliance {
// ==================== CAZ SPECIAL: LIDERUL PLEACĂ ====================
if ($isFounder && $memberCount > 1) {
if (empty($post['new_founder'])) {
$form->addError("founder", 'Founder was not selected.');
$form->addError("founder", FOUNDER_LEAVE_NEW);
return;
}
$newFounderID = (int)$post['new_founder'];
@@ -839,7 +839,7 @@ class Alliance {
}
}
if (!$valid) {
$form->addError("founder", 'Invalid founder.');
$form->addError("founder", FOUNDER_LEAVE_INVALID);
return;
}
+3 -1
View File
@@ -5,8 +5,10 @@
## Filename buidata.php ##
## Developed by: Akakori ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2011. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
#################################################################################
+3 -3
View File
@@ -6,10 +6,10 @@
## Filename cel.php ##
## Developed by: G3n3s!s & JimJam & LoppyLukas ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+4 -1
View File
@@ -6,7 +6,10 @@
## Filename cp.php ##
## Developed by: G3n3s!s & JimJam & LoppyLukas ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+13
View File
@@ -1,5 +1,18 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename hero_full.php ##
## Developed by: yi12345 ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
$hero_levels = array(0 => 0, 100, 300, 600, 1000, 1500, 2100, 2800, 3600, 4500, 5500, 6600, 7800, 9100, 10500, 12000, 13600, 15300, 17100, 19000, 21000, 23100, 25300, 27600, 30000, 32500, 35100, 37800, 40600, 43500, 46500, 49600, 52800, 56100, 59500, 63000, 66600, 70300, 74100, 78000, 82000, 86100, 90300, 94600, 99000, 103500, 108100, 112800, 117600, 122500, 127500, 132600, 137800, 143100, 148500, 154000, 159600, 165300, 171100, 177000, 183000, 189100, 195300, 201600, 208000, 214500, 221100, 227800,
234600, 241500, 248500, 255600, 262800, 270100, 277500, 285000, 292600, 300300, 308100, 316000, 324000, 332100, 340300, 348600, 357000, 365500, 374100, 382800, 391600, 400500, 409500, 418600, 427800, 437100, 446500, 456000, 465600, 475300, 485100, 495000);
+5 -1
View File
@@ -5,7 +5,11 @@
## Filename index.php ##
## Developed by: aggenkeech ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
// prevent direct misuse in weird contexts (optional but safe)
+4 -1
View File
@@ -5,7 +5,10 @@
## --------------------------------------------------------------------------- ##
## Filename resdata.php ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+4 -1
View File
@@ -5,7 +5,10 @@
## Filename unitdata.php ##
## Developed by: Akakori ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+1 -1
View File
@@ -11,7 +11,7 @@
## Refactor: Incremental cleanup (compatibility preserved) ##
## Notes: PHP 7+ / legacy safe ##
## ##
## URLs: http://travian.shadowss.ro ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+4 -1
View File
@@ -5,7 +5,10 @@
## Filename WorldWonderName.php ##
## Developed by: Dzoki ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+5 -1
View File
@@ -5,7 +5,11 @@
## Filename index.php ##
## Developed by: aggenkeech ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
// prevent direct misuse in weird contexts (optional but safe)
+1 -1
View File
@@ -7,7 +7,7 @@
## Version: 18.05.2026 ##
## Filename: Generator.php ##
## Developed by: Dzoki ##
## Refactored by: Shadow (cata7007@gmail.com) ##
## Refactored by: Shadow (cata7007@gmail.com) ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
+7
View File
@@ -8,6 +8,10 @@
// DO NOT REMOVE COPYRIGHT NOTICE! //
// Adding tasks, constructions and artefact by: Armando //
// Modified , added , fixed , implementd by: Shadow and ronix //
// //
// URLs: https://travianz.org //
// https://github.com/Shadowss/TravianZ //
// //
//////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// ENGLISH //
@@ -79,6 +83,9 @@ define('ALLY_TOO_LOW', 'You must have a level 3 or greater embassy');
define('USER_NOT_IN_YOUR_ALLY', 'This user is not in your alliance!');
define('CANT_EDIT_YOUR_PERMISSIONS', 'You can`t edit your own permissions!');
define('CANT_EDIT_LEADER_PERMISSIONS', 'Alliance leader`s permissions can`t be edited!');
define('CANT_REMOVE_LEADER', 'You cannot expel the alliance founder!');
define('FOUNDER_LEAVE_NEW', 'Founder was not selected!');
define('FOUNDER_LEAVE_INVALID', 'Invalid founder!');
define('NO_PERMISSION', 'You don`t have enough permissions!');
define('NAME_OR_DIPL_EMPTY', 'Name or diplomacy empty');
define('ALLY_DOESNT_EXISTS', 'Alliance does not exist');
+1 -1
View File
@@ -7,7 +7,7 @@
## Developed by: Dixie ##
## Refactored: Shadow (PHP 7+ compatibility, cleanup, safety pass) ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
+4 -1
View File
@@ -6,7 +6,10 @@
## Developed by: SlimShady ##
## Edited by: Dzoki & Dixie ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+4 -1
View File
@@ -6,7 +6,10 @@
## Filename Technology.php ##
## Developed by: Dzoki ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+6 -6
View File
@@ -3,15 +3,15 @@
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Version: 22.06.2015 ##
## Version: 22.06.2015 ##
## Filename Units.php ##
## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
## Fixed by: InCube - double troops ##
## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
## ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
+4 -1
View File
@@ -5,7 +5,10 @@
## Filename index.php ##
## Developed by: aggenkeech ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: https://travianz.org ##
## https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
// prevent direct misuse in weird contexts (optional but safe)