From 3607a566f98e12110a81c682d38d2d50ab496be6 Mon Sep 17 00:00:00 2001 From: Catalin Novgorodschi <1140613+Shadowss@users.noreply.github.com> Date: Tue, 28 Apr 2026 10:19:50 +0300 Subject: [PATCH] Add notice Add notice --- .gitignore | 1 + GameEngine/Account.php | 13 ++++++++----- a2b2.php | 7 +++++-- activate.php | 8 ++++++-- agb.php | 12 ++++++------ ajax.php | 6 ++++-- allianz.php | 13 +++++++++++++ anleitung.php | 7 +++++-- anmelden.php | 9 ++++++--- autoloader.php | 14 ++++++++++++++ banned.php | 6 +++++- berichte.php | 11 +++++++---- build.php | 9 ++++++--- build_croppers.php | 15 +++++++++++++++ celebration.php | 7 +++++-- 15 files changed, 106 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index fff5ce94..66d5a157 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ var/log/access.log # Docker environment file with sensitive credentials .env +*.lnk diff --git a/GameEngine/Account.php b/GameEngine/Account.php index 1ed828d4..0f320645 100755 --- a/GameEngine/Account.php +++ b/GameEngine/Account.php @@ -115,6 +115,8 @@ class Account { $form->addError("invt",$_POST['invited']); $_SESSION['errorarray'] = $form->getErrors(); $_SESSION['valuearray'] = $_POST; + + header("Location: anmelden.php"); exit; } @@ -208,25 +210,26 @@ class Account { // try activation data if the user was not found if(!$userData){ $activateData = $database->getActivateField($_POST['user'], 'act', 1); - if(!empty($activateData)) $form->addError("activate", $_POST['user']); - else $form->addError("pw", LOGIN_PW_ERROR); } else $form->addError("pw", LOGIN_PW_ERROR); } $userData = $database->getUserArray($_POST['user'], 0); + // Vacation mode by Shadow if($userData["vac_mode"] == 1 && $userData["vac_time"] > time()){ $form->addError("vacation", "Vacation mode is still enabled"); - } + } + // Vacation mode by Shadow if($form->returnErrors() > 0){ $_SESSION['errorarray'] = $form->getErrors(); $_SESSION['valuearray'] = $_POST; - header("Location: login.php"); exit(); }else{ + // Vacation mode by Shadow $database->removevacationmode($userData['id']); + // Vacation mode by Shadow if($database->login($_POST['user'], $_POST['pw'])){ $database->UpdateOnline("login", $_POST['user'], time(), $userData['id']); }else if($database->sitterLogin($_POST['user'], $_POST['pw'])){ @@ -238,7 +241,7 @@ class Account { } private function Logout() { - global $session, $database; + global $session, $database; unset($_SESSION['wid']); $database->activeModify(addslashes($session->username),1); $database->UpdateOnline("logout") or die(mysqli_error($database->dblink)); diff --git a/a2b2.php b/a2b2.php index c27a2a1a..43b371c6 100644 --- a/a2b2.php +++ b/a2b2.php @@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## +## Project: TravianZ ## ## Filename a2b2.php ## ## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/activate.php b/activate.php index 637bdc02..5ed4b35a 100644 --- a/activate.php +++ b/activate.php @@ -3,10 +3,14 @@ ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## +## Project: TravianZ ## ## Filename activate.php ## ## Developed by: Dixie ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## Developed by: Dzoki ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/agb.php b/agb.php index 9c17ad1b..8bfef94b 100644 --- a/agb.php +++ b/agb.php @@ -5,14 +5,14 @@ ## ## ## --------------------------------------------------------------------------- ## ## ## -## Project: ZravianX ## -## Version: 2011.11.07 ## +## Project: TravianZ ## +## Version: 28.04.2026 ## ## Filename: agb.php ## ## Developed by: ZZJHONS ## -## License: Creative Commons BY-NC-SA 3.0 ## -## Copyright: ZravianX (c) 2011 - All rights reserved ## -## URLs: http://zravianx.zzjhons.com ## -## Source code: http://www.github.com/ZZJHONS/ZravianX ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# header("Location: terms.php"); diff --git a/ajax.php b/ajax.php index d337d54e..06661bcf 100644 --- a/ajax.php +++ b/ajax.php @@ -4,8 +4,10 @@ ## --------------------------------------------------------------------------- ## ## Filename ajax.php ## ## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/allianz.php b/allianz.php index 71533de4..3fea1af6 100644 --- a/allianz.php +++ b/allianz.php @@ -2,6 +2,19 @@ include_once("GameEngine/Generator.php"); $start_timer = $generator->pageLoadTimeStart(); +################################################################################# +## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## +## --------------------------------------------------------------------------- ## +## Project: TravianZ ## +## Filename allianz.php ## +## Developed by: Dzoki ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## +## ## +################################################################################# + //fix by ronix use App\Utils\AccessLogger; diff --git a/anleitung.php b/anleitung.php index b0fbcabb..7641a1ee 100644 --- a/anleitung.php +++ b/anleitung.php @@ -2,10 +2,13 @@ ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## +## Project: TravianZ ## ## Filename anleitung.php ## ## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/anmelden.php b/anmelden.php index ccfaf157..5feea0f2 100644 --- a/anmelden.php +++ b/anmelden.php @@ -3,10 +3,13 @@ ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## -## Filename anmelden.php ## +## Project: TravianZ ## +## Filename anmelden.php ## ## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/autoloader.php b/autoloader.php index 29caea20..c44eb27e 100644 --- a/autoloader.php +++ b/autoloader.php @@ -1,4 +1,18 @@ pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## +## Project: TravianZ ## ## Filename banned.php ## ## Developed by: yi12345 ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/berichte.php b/berichte.php index 2389b0bb..f10fcdaf 100644 --- a/berichte.php +++ b/berichte.php @@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## -## Filename berichte.php ## -## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## Project: TravianZ ## +## Filename berichte.php ## +## Developed by: yi12345 ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/build.php b/build.php index 77fccc0f..9ca40224 100644 --- a/build.php +++ b/build.php @@ -3,10 +3,13 @@ ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## +## Project: TravianZ ## ## Filename build.php ## -## Developed by: Dzoki ## -## License: TravianX Project ## -## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## Developed by: yi12345 ## +## License: TravianZ Project ## +## Copyright: TravianZ (c) 2010-2026. All rights reserved. ## +## URLs: http://travian.shadowss.ro ## +## Source code: https://github.com/Shadowss/TravianZ ## ## ## ################################################################################# diff --git a/build_croppers.php b/build_croppers.php index e25ff6ea..d1a4232c 100644 --- a/build_croppers.php +++ b/build_croppers.php @@ -1,9 +1,24 @@