Add notice

Add notice
This commit is contained in:
Catalin Novgorodschi
2026-04-28 10:19:50 +03:00
parent 6f311ced30
commit 3607a566f9
15 changed files with 106 additions and 32 deletions
+1
View File
@@ -42,3 +42,4 @@ var/log/access.log
# Docker environment file with sensitive credentials # Docker environment file with sensitive credentials
.env .env
*.lnk
+6 -3
View File
@@ -115,6 +115,8 @@ class Account {
$form->addError("invt",$_POST['invited']); $form->addError("invt",$_POST['invited']);
$_SESSION['errorarray'] = $form->getErrors(); $_SESSION['errorarray'] = $form->getErrors();
$_SESSION['valuearray'] = $_POST; $_SESSION['valuearray'] = $_POST;
header("Location: anmelden.php"); header("Location: anmelden.php");
exit; exit;
} }
@@ -208,25 +210,26 @@ class Account {
// try activation data if the user was not found // try activation data if the user was not found
if(!$userData){ if(!$userData){
$activateData = $database->getActivateField($_POST['user'], 'act', 1); $activateData = $database->getActivateField($_POST['user'], 'act', 1);
if(!empty($activateData)) $form->addError("activate", $_POST['user']); if(!empty($activateData)) $form->addError("activate", $_POST['user']);
else $form->addError("pw", LOGIN_PW_ERROR); else $form->addError("pw", LOGIN_PW_ERROR);
} }
else $form->addError("pw", LOGIN_PW_ERROR); else $form->addError("pw", LOGIN_PW_ERROR);
} }
$userData = $database->getUserArray($_POST['user'], 0); $userData = $database->getUserArray($_POST['user'], 0);
// Vacation mode by Shadow
if($userData["vac_mode"] == 1 && $userData["vac_time"] > time()){ if($userData["vac_mode"] == 1 && $userData["vac_time"] > time()){
$form->addError("vacation", "Vacation mode is still enabled"); $form->addError("vacation", "Vacation mode is still enabled");
} }
// Vacation mode by Shadow
if($form->returnErrors() > 0){ if($form->returnErrors() > 0){
$_SESSION['errorarray'] = $form->getErrors(); $_SESSION['errorarray'] = $form->getErrors();
$_SESSION['valuearray'] = $_POST; $_SESSION['valuearray'] = $_POST;
header("Location: login.php"); header("Location: login.php");
exit(); exit();
}else{ }else{
// Vacation mode by Shadow
$database->removevacationmode($userData['id']); $database->removevacationmode($userData['id']);
// Vacation mode by Shadow
if($database->login($_POST['user'], $_POST['pw'])){ if($database->login($_POST['user'], $_POST['pw'])){
$database->UpdateOnline("login", $_POST['user'], time(), $userData['id']); $database->UpdateOnline("login", $_POST['user'], time(), $userData['id']);
}else if($database->sitterLogin($_POST['user'], $_POST['pw'])){ }else if($database->sitterLogin($_POST['user'], $_POST['pw'])){
+5 -2
View File
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename a2b2.php ## ## Filename a2b2.php ##
## Developed by: Dzoki ## ## Developed by: Dzoki ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
+6 -2
View File
@@ -3,10 +3,14 @@
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename activate.php ## ## Filename activate.php ##
## Developed by: Dixie ## ## Developed by: Dixie ##
## License: TravianX Project ## ## Developed by: Dzoki ##
## 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 ##
## ## ## ##
################################################################################# #################################################################################
+6 -6
View File
@@ -5,14 +5,14 @@
## ## ## ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## ## ## ##
## Project: ZravianX ## ## Project: TravianZ ##
## Version: 2011.11.07 ## ## Version: 28.04.2026 ##
## Filename: agb.php ## ## Filename: agb.php ##
## Developed by: ZZJHONS ## ## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ## ## License: TravianZ Project ##
## Copyright: ZravianX (c) 2011 - All rights reserved ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://zravianx.zzjhons.com ## ## URLs: http://travian.shadowss.ro ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ## ## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
header("Location: terms.php"); header("Location: terms.php");
+4 -2
View File
@@ -4,8 +4,10 @@
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Filename ajax.php ## ## Filename ajax.php ##
## Developed by: Dzoki ## ## Developed by: Dzoki ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
+13
View File
@@ -2,6 +2,19 @@
include_once("GameEngine/Generator.php"); include_once("GameEngine/Generator.php");
$start_timer = $generator->pageLoadTimeStart(); $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 //fix by ronix
use App\Utils\AccessLogger; use App\Utils\AccessLogger;
+5 -2
View File
@@ -2,10 +2,13 @@
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename anleitung.php ## ## Filename anleitung.php ##
## Developed by: Dzoki ## ## Developed by: Dzoki ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
+6 -3
View File
@@ -3,10 +3,13 @@
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Filename anmelden.php ## ## Project: TravianZ ##
## Filename anmelden.php ##
## Developed by: Dzoki ## ## Developed by: Dzoki ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
+14
View File
@@ -1,4 +1,18 @@
<?php <?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename autoloader.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 ##
## ##
#################################################################################
function autoloadClass($class) { function autoloadClass($class) {
// strip the App classname's namespace // strip the App classname's namespace
$clazz = str_replace(['App\\', '\\'], ['', '/'], $class); $clazz = str_replace(['App\\', '\\'], ['', '/'], $class);
+5 -1
View File
@@ -5,9 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename banned.php ## ## Filename banned.php ##
## Developed by: yi12345 ## ## 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 ##
## ## ## ##
################################################################################# #################################################################################
+7 -4
View File
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Filename berichte.php ## ## Project: TravianZ ##
## Developed by: Dzoki ## ## Filename berichte.php ##
## License: TravianX Project ## ## 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 ##
## ## ## ##
################################################################################# #################################################################################
+6 -3
View File
@@ -3,10 +3,13 @@
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename build.php ## ## Filename build.php ##
## Developed by: Dzoki ## ## Developed by: yi12345 ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
+15
View File
@@ -1,10 +1,25 @@
<?php <?php
/** /**
* crop_builder.php * crop_builder.php
* Admin UI to build/rebuild the precomputed croppers table (9c/15c + best oasis bonus). * Admin UI to build/rebuild the precomputed croppers table (9c/15c + best oasis bonus).
* The UI is rendered inside the pages main content area with normal “player” styling. * The UI is rendered inside the pages main content area with normal “player” styling.
*/ */
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename build_croppers.php ##
## Developed by: TravianZ ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
use App\Utils\AccessLogger; use App\Utils\AccessLogger;
include_once("GameEngine/Generator.php"); include_once("GameEngine/Generator.php");
+5 -2
View File
@@ -2,10 +2,13 @@
################################################################################# #################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ## ## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Filename celebration.php ## ## Filename celebration.php ##
## Developed by: Dzoki ## ## Developed by: Dzoki ##
## License: TravianX Project ## ## License: TravianZ Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ## ## ##
################################################################################# #################################################################################
use App\Utils\AccessLogger; use App\Utils\AccessLogger;