mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-27 16:14:30 +00:00
Add notice and winner refactor
Add notice and winner refactor
This commit is contained in:
@@ -2,15 +2,23 @@
|
||||
include_once ("GameEngine/Generator.php");
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
// ################################################################################
|
||||
// # -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
// # --------------------------------------------------------------------------- ##
|
||||
// # Filename a2b.php ##
|
||||
// # Developed by: Dzoki ##
|
||||
// # License: TravianX Project ##
|
||||
// # Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
// # ##
|
||||
// ################################################################################
|
||||
#################################################################################
|
||||
## ##
|
||||
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 29.04.2026 ##
|
||||
## Filename: a2b.php ##
|
||||
## Developed by: Dzoki & Advocaite & Donnchadh ##
|
||||
## Reworked by: Shadow ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2018. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: https://github.com/Shadowss/TravianZ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
@@ -11,6 +12,7 @@
|
||||
## Source code: https://github.com/Shadowss/TravianZ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include_once("GameEngine/Village.php");
|
||||
|
||||
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename dorf1.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
@@ -5,12 +5,16 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename dorf2.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include_once("GameEngine/Village.php");
|
||||
|
||||
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename dorf3.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
@@ -7,15 +7,15 @@ use App\Utils\AccessLogger;
|
||||
## ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## ##
|
||||
## Project: ZravianX ##
|
||||
## Version: 2011.11.30 ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 29.04.2026 ##
|
||||
## Filename: index.php ##
|
||||
## Developed by: Dzoki & Advocaite & Donnchadh ##
|
||||
## Reworked 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-2018. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: https://github.com/Shadowss/TravianZ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
@@ -90,7 +90,7 @@ AccessLogger::logRequest();
|
||||
<tr>
|
||||
<td><a href="tutorial.php"><span><?php echo TUTORIAL; ?></span></a></td>
|
||||
<td><a href="anleitung.php"><span><?php echo $lang['index'][0][2]; ?></span></a></td>
|
||||
<td><a href="http://forum.travian.com/" target="_blank"><span><?php echo FORUM; ?></span></a></td>
|
||||
<td><a href="https://github.com/Shadowss/TravianZ/discussions" target="_blank"><span><?php echo FORUM; ?></span></a></td>
|
||||
<td><a href="?signup" class="signup_link mark"><span><?php echo $lang['register']; ?></span></a></td>
|
||||
<td><a href="?login" class="login_link"><span><?php echo LOGIN; ?></span></a></td>
|
||||
</tr>
|
||||
|
||||
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename karte.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+6
-3
@@ -2,10 +2,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename karte2.php ##
|
||||
## Developed by: Advocaite ##
|
||||
## 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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
@@ -3,10 +3,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename login.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename logout.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -4,10 +4,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename manual.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -3,10 +3,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename massmessage.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename nachrichten.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+6
-2
@@ -5,9 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename packages.php ##
|
||||
## Project: TravianZ ##
|
||||
## Filename packages.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -3,10 +3,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename password.php ##
|
||||
## Developed by: Dixie ##
|
||||
## 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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename plus.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename rules.php ##
|
||||
## Developed by: FurkicanLove ##
|
||||
## License: TravianWorldZ Project ##
|
||||
## Copyright: TravianWorldZ (c) 2011. All rights reserved. ##
|
||||
## Developed by: FurkicanLove ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: https://github.com/Shadowss/TravianZ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+6
-2
@@ -5,12 +5,16 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename spieler.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
ob_start();
|
||||
|
||||
+7
-3
@@ -1,11 +1,15 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename anleitung.php ##
|
||||
## Project: TravianZ ##
|
||||
## Filename spieleregeln.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -3,10 +3,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename statistiken.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+6
-3
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename anmelden.php ##
|
||||
## Project: TravianZ ##
|
||||
## Filename support.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
+5
-2
@@ -2,10 +2,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename sysmsg.php ##
|
||||
## Developed by: Dixie ##
|
||||
## 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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+7
-69
@@ -2,11 +2,13 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename anleitung.php ##
|
||||
## Project: TravianZ ##
|
||||
## Filename tutorial.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Fixed bt: Shadow ##
|
||||
## 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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
@@ -34,57 +36,25 @@ AccessLogger::logRequest();
|
||||
<body class="webkit contentPage">
|
||||
<div class="wrapper">
|
||||
<div id="country_select">
|
||||
|
||||
</div>
|
||||
<div id="header">
|
||||
<h1>Welcome to <?php echo SERVER_NAME; ?></h1>
|
||||
</div>
|
||||
|
||||
<div id="navigation">
|
||||
|
||||
<a href="index.php" class="home"><img src="img/x.gif" alt="Travian"/></a>
|
||||
|
||||
<table class="menu">
|
||||
|
||||
<tr>
|
||||
|
||||
<td><a href="tutorial.php"><span>Tutorial</span></a></td>
|
||||
|
||||
<td><a href="anleitung.php"><span>Manual</span></a></td>
|
||||
|
||||
<td><a href="http://forum.travian.com/" target="_blank"><span>Forum</span></a></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td><a href="index.php?signup"><span>Register</span></a></td>
|
||||
|
||||
<td><a href="index.php?login"><span>Login</span></a></td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="grit">
|
||||
|
||||
|
||||
<div class="grit">
|
||||
<h1>Tutorial</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!isset($_GET['s'])) {
|
||||
$_GET['s'] = ""; }
|
||||
@@ -101,51 +71,19 @@ AccessLogger::logRequest();
|
||||
if ($_GET['s'] == "5") {
|
||||
include("Templates/Tutorial/5.tpl"); }
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<div class="footer"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="iframe_layer" class="overlay">
|
||||
|
||||
|
||||
|
||||
<div class="mask closer"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="overlay_content">
|
||||
|
||||
<a href="index.php" class="closer"><img class="dynamic_img" alt="Close" src="img/un/x.gif" /></a>
|
||||
|
||||
<h2>Anleitung</h2>
|
||||
|
||||
|
||||
|
||||
<div id="frame_box" >
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+5
-2
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename version.php ##
|
||||
## Developed by: Shadow ##
|
||||
## 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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+5
-2
@@ -5,10 +5,13 @@ $start_timer = $generator->pageLoadTimeStart();
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Filename warsim.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 ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
+106
-84
@@ -3,21 +3,21 @@ include_once("GameEngine/Generator.php");
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 18.02.2014 ##
|
||||
## Description: When the player builds Wonder of the World ##
|
||||
## to level 100 the winner details are shown. ##
|
||||
## tells the players the game is over ##
|
||||
## Authors: aggenkeech - and a little help from Eyas95 ##
|
||||
## Page: winner.php ##
|
||||
## Fixed by: Shadow ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: https://github.com/Shadowss/TravianZ/ ##
|
||||
## ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 18.02.2014 ##
|
||||
## Description: When the player builds Wonder of the World ##
|
||||
## to level 100 the winner details are shown. ##
|
||||
## tells the players the game is over ##
|
||||
## Authors: aggenkeech - and a little help from Eyas95 ##
|
||||
## Page: winner.php ##
|
||||
## Fixed by: Shadow ##
|
||||
## 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;
|
||||
@@ -39,31 +39,32 @@ if(isset($_GET['newdid'])) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'");
|
||||
$winner = mysqli_num_rows($sql);
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| CHECK WW WINNER EXISTS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if($winner > 0){
|
||||
$sql = mysqli_query($database->dblink,"SELECT 1 FROM " . TB_PREFIX . "fdata WHERE f99 = '100' AND f99t = '40' LIMIT 1");
|
||||
$winner = mysqli_fetch_row($sql);
|
||||
if ($winner) {
|
||||
|
||||
## Get Rankings for Ranking Section
|
||||
## Top 3 Population
|
||||
$q = "
|
||||
SELECT ".TB_PREFIX."users.id userid, ".TB_PREFIX."users.username username,".TB_PREFIX."users.alliance alliance, (
|
||||
SELECT SUM( ".TB_PREFIX."vdata.pop )
|
||||
FROM ".TB_PREFIX."vdata
|
||||
WHERE ".TB_PREFIX."vdata.owner = userid
|
||||
)totalpop, (
|
||||
SELECT COUNT( " . TB_PREFIX . "vdata.wref )
|
||||
FROM " . TB_PREFIX . "vdata
|
||||
WHERE " . TB_PREFIX . "vdata.owner = userid AND type != 99
|
||||
)totalvillages, (
|
||||
SELECT " . TB_PREFIX . "alidata.tag
|
||||
FROM " . TB_PREFIX . "alidata, " . TB_PREFIX . "users
|
||||
WHERE " . TB_PREFIX . "alidata.id = " . TB_PREFIX . "users.alliance
|
||||
AND " . TB_PREFIX . "users.id = userid
|
||||
)allitag
|
||||
FROM " . TB_PREFIX . "users
|
||||
WHERE " . TB_PREFIX . "users.access < ".(INCLUDE_ADMIN ? "10" : "8")." AND " . TB_PREFIX . "users.tribe <= 3
|
||||
ORDER BY totalpop DESC, totalvillages DESC, username ASC";
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| TOP POPULATION
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$q = "SELECT
|
||||
u.id AS userid,
|
||||
u.username,
|
||||
u.alliance,
|
||||
(SELECT SUM(v.pop) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id) AS totalpop,
|
||||
(SELECT COUNT(v.wref) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id AND v.type != 99) AS totalvillages,
|
||||
(SELECT a.tag FROM " . TB_PREFIX . "alidata a WHERE a.id = u.alliance) AS allitag
|
||||
FROM " . TB_PREFIX . "users u
|
||||
WHERE u.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND u.tribe <= 3
|
||||
ORDER BY totalpop DESC, totalvillages DESC, u.username ASC";
|
||||
|
||||
$result = (mysqli_query($database->dblink,$q));
|
||||
while($row = mysqli_fetch_assoc($result)) $datas[] = $row;
|
||||
@@ -75,21 +76,23 @@ if(isset($_GET['newdid'])) {
|
||||
$value['aname'] = $result['allitag'];
|
||||
$value['totalpop'] = $result['totalpop'];
|
||||
$value['totalvillage'] = $result['totalvillages'];
|
||||
}
|
||||
## Top Attacker
|
||||
$q = "
|
||||
SELECT " . TB_PREFIX . "users.id userid, " . TB_PREFIX . "users.username username, " . TB_PREFIX . "users.apall, (
|
||||
SELECT COUNT( " . TB_PREFIX . "vdata.wref )
|
||||
FROM " . TB_PREFIX . "vdata
|
||||
WHERE " . TB_PREFIX . "vdata.owner = userid AND type != 99
|
||||
)totalvillages, (
|
||||
SELECT SUM( " . TB_PREFIX . "vdata.pop )
|
||||
FROM " . TB_PREFIX . "vdata
|
||||
WHERE " . TB_PREFIX . "vdata.owner = userid
|
||||
)pop
|
||||
FROM " . TB_PREFIX . "users
|
||||
WHERE " . TB_PREFIX . "users.apall >= 0 AND " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND " . TB_PREFIX . "users.tribe <= 3
|
||||
ORDER BY " . TB_PREFIX . "users.apall DESC, pop DESC, username ASC";
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| TOP ATTACKER
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$q = "SELECT
|
||||
u.id AS userid,
|
||||
u.username,
|
||||
u.apall,
|
||||
(SELECT COUNT(v.wref) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id AND v.type != 99) AS totalvillages,
|
||||
(SELECT SUM(v.pop) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id) AS pop
|
||||
FROM " . TB_PREFIX . "users u
|
||||
WHERE u.apall >= 0 AND u.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND u.tribe <= 3
|
||||
ORDER BY u.apall DESC, pop DESC, u.username ASC";
|
||||
|
||||
$result = mysqli_query($database->dblink,$q);
|
||||
while($row = mysqli_fetch_assoc($result)) $attacker[] = $row;
|
||||
@@ -101,20 +104,23 @@ if(isset($_GET['newdid'])) {
|
||||
$value['totalpop'] = $row['pop'];
|
||||
$value['apall'] = $row['apall'];
|
||||
}
|
||||
## Top Defender
|
||||
$q = "
|
||||
SELECT ".TB_PREFIX."users.id userid, ".TB_PREFIX."users.username username, ".TB_PREFIX."users.dpall, (
|
||||
SELECT COUNT(".TB_PREFIX."vdata.wref)
|
||||
FROM ".TB_PREFIX."vdata
|
||||
WHERE ".TB_PREFIX."vdata.owner = userid AND type != 99
|
||||
)totalvillages, (
|
||||
SELECT SUM(".TB_PREFIX."vdata.pop)
|
||||
FROM ". TB_PREFIX . "vdata
|
||||
WHERE ". TB_PREFIX . "vdata.owner = userid
|
||||
)pop
|
||||
FROM ".TB_PREFIX."users
|
||||
WHERE ". TB_PREFIX."users.dpall >= 0 AND ".TB_PREFIX."users.access < ".(INCLUDE_ADMIN ? "10" : "8")." AND ".TB_PREFIX."users.tribe <= 3
|
||||
ORDER BY ".TB_PREFIX."users.dpall DESC, pop DESC, username ASC";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| TOP DEFENDER
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$q = "SELECT
|
||||
u.id AS userid,
|
||||
u.username,
|
||||
u.dpall,
|
||||
(SELECT COUNT(v.wref) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id AND v.type != 99) AS totalvillages,
|
||||
(SELECT SUM(v.pop) FROM " . TB_PREFIX . "vdata v WHERE v.owner = u.id) AS pop
|
||||
FROM " . TB_PREFIX . "users u
|
||||
WHERE u.dpall >= 0 AND u.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND u.tribe <= 3
|
||||
ORDER BY u.dpall DESC, pop DESC, u.username ASC";
|
||||
|
||||
$result = mysqli_query($database->dblink,$q);
|
||||
while($row = mysqli_fetch_assoc($result)) $defender[] = $row;
|
||||
|
||||
@@ -126,27 +132,43 @@ if(isset($_GET['newdid'])) {
|
||||
$value['dpall'] = $row['dpall'];
|
||||
}
|
||||
|
||||
## Get WW Winner Details
|
||||
$sql = mysqli_query($database->dblink,"SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'");
|
||||
$vref = mysqli_result($sql, 0);
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| WW WINNER DETAILS
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
$winningvillagename = $database->getVillage($vref)['name'];
|
||||
$owner = $database->getVillage($vref)['owner'];
|
||||
$q = "SELECT
|
||||
f.vref,
|
||||
f.ww_lastupdate,
|
||||
v.name AS village_name,
|
||||
v.owner AS owner_id,
|
||||
u.username,
|
||||
a.id AS alliance_id,
|
||||
a.name AS alliance_name,
|
||||
a.tag AS alliance_tag
|
||||
FROM " . TB_PREFIX . "fdata f
|
||||
LEFT JOIN " . TB_PREFIX . "vdata v ON v.wref = f.vref
|
||||
LEFT JOIN " . TB_PREFIX . "users u ON u.id = v.owner
|
||||
LEFT JOIN " . TB_PREFIX . "alidata a ON a.id = u.alliance
|
||||
WHERE f.f99 = '100' AND f.f99t = '40'
|
||||
LIMIT 1";
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT username FROM ".TB_PREFIX."users WHERE id = '$owner'");
|
||||
$username = mysqli_result($sql, 0);
|
||||
$result = mysqli_query($database->dblink, $q);
|
||||
$row = mysqli_fetch_assoc($result);
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT alliance FROM ".TB_PREFIX."users WHERE id = '$owner'");
|
||||
$allianceid = mysqli_result($sql, 0);
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT name, tag FROM ".TB_PREFIX."alidata WHERE id = '$allianceid'");
|
||||
$winningalliance = mysqli_result($sql, 0);
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT tag FROM ".TB_PREFIX."alidata WHERE id = '$allianceid'");
|
||||
$winningalliancetag = mysqli_result($sql, 0);
|
||||
|
||||
$sql = mysqli_query($database->dblink,"SELECT ww_lastupdate FROM ".TB_PREFIX."fdata WHERE vref = '$vref'");
|
||||
$finishconstruction = mysqli_result($sql, 0);
|
||||
if ($row) {
|
||||
$vref = $row['vref'];
|
||||
$winningvillagename = $row['village_name'];
|
||||
$owner = $row['owner_id'];
|
||||
$username = $row['username'];
|
||||
$allianceid = $row['alliance_id'];
|
||||
$winningalliance = $row['alliance_name'];
|
||||
$winningalliancetag = $row['alliance_tag'];
|
||||
$finishconstruction = $row['ww_lastupdate'];
|
||||
} else {
|
||||
$vref = 0;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user