3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename statistiken.php ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
11 #################################################################################
14 include("GameEngine/Village.php");
15 $start = $generator->pageLoadTimeStart();
16 if(isset($_GET['rank'])){ $_POST['rank']==$_GET['rank']; }
17 $ranking->procRankReq($_GET);
18 $ranking->procRank($_POST);
19 if(isset($_GET['newdid'])) {
20 $_SESSION['wid'] = $_GET['newdid'];
21 header("Location: ".$_SERVER['PHP_SELF']);
24 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
27 <title
><?php
echo SERVER_NAME ?
></title
>
28 <link REL
="shortcut icon" HREF
="favicon.ico"/>
29 <meta http
-equiv
="cache-control" content
="max-age=0" />
30 <meta http
-equiv
="pragma" content
="no-cache" />
31 <meta http
-equiv
="expires" content
="0" />
32 <meta http
-equiv
="imagetoolbar" content
="no" />
33 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
34 <script src
="mt-full.js?0faaa" type
="text/javascript"></script
>
35 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
36 <script src
="new.js?0faaa" type
="text/javascript"></script
>
37 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel
="stylesheet" type
="text/css" />
38 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel
="stylesheet" type
="text/css" />
40 if($session->gpack
== null || GP_ENABLE
== false) {
42 <link href='".GP_LOCATE
."travian.css?e21d2' rel='stylesheet' type='text/css' />
43 <link href='".GP_LOCATE
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
46 <link href='".$session->gpack
."travian.css?e21d2' rel='stylesheet' type='text/css' />
47 <link href='".$session->gpack
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
50 <script type
="text/javascript">
52 window
.addEvent('domready', start
);
57 <body
class="v35 ie ie8">
59 <img style
="filter:chroma();" src
="img/x.gif" id
="msfilter" alt
="" />
60 <div id
="dynamic_header">
62 <?php
include("Templates/header.tpl"); ?
>
64 <?php
include("Templates/menu.tpl"); ?
>
65 <div id
="content" class="statistics">
67 <?php
if($session->access
== ADMIN
) { echo "<a href=\"medals.php\">Update Top 10</a>"; } ?
>
69 <a href
="statistiken.php" <?php
if(!isset($_GET['id']) ||
(isset($_GET['id']) && ($_GET['id'] == 1 ||
$_GET['id'] == 31 ||
$_GET['id'] == 32 ||
$_GET['id'] == 7))) { echo "class=\"selected \""; } ?
>>Player
</a
>
70 |
<a href
="statistiken.php?id=4" <?php
if(isset($_GET['id']) && ($_GET['id'] == 4 ||
$_GET['id'] == 41 ||
$_GET['id'] == 42 ||
$_GET['id'] == 47)) { echo "class=\"selected \""; } ?
>>Alliances
</a
>
71 |
<a href
="statistiken.php?id=2" <?php
if(isset($_GET['id']) && $_GET['id'] == 2) { echo "class=\"selected \""; } ?
>>Villages
</a
>
72 |
<a href
="statistiken.php?id=8" <?php
if(isset($_GET['id']) && $_GET['id'] == 8) { echo "class=\"selected \""; } ?
>>Heroes
</a
><!--
73 |
<a href
="statistiken.php?id=0" <?php
//if(isset($_GET['id']) && $_GET['id'] == 0) { echo "class=\"selected \""; } ?>>General</a>-->
74 <?php
if(WW
== true) { echo
75 '|'; } else { echo ''; } ?
></a
> <a href
="statistiken.php?id=9" <?php
if(isset($_GET['id']) && $_GET['id'] == 99) { echo "class=\"selected \""; } ?
>><?php
if(WW
== true) { echo
76 'WW'; } else { echo ''; }?
></a
>
79 if(isset($_GET['id'])) {
82 include("Templates/Ranking/player_attack.tpl");
85 include("Templates/Ranking/player_defend.tpl");
88 include("Templates/Ranking/player_top10.tpl");
91 include("Templates/Ranking/villages.tpl");
94 include("Templates/Ranking/alliance.tpl");
97 include("Templates/Ranking/heroes.tpl");
100 include("Templates/Ranking/player_1.tpl");
103 include("Templates/Ranking/player_2.tpl");
106 include("Templates/Ranking/player_3.tpl");
109 include("Templates/Ranking/alliance_attack.tpl");
112 include("Templates/Ranking/alliance_defend.tpl");
115 include("Templates/Ranking/ally_top10.tpl");
118 include("Templates/Ranking/general.tpl");
122 include("Templates/Ranking/overview.tpl");
126 include("Templates/Ranking/ww.tpl");
131 include("Templates/Ranking/overview.tpl");
142 include("Templates/quest.tpl");
143 include("Templates/news.tpl");
144 include("Templates/multivillage.tpl");
145 include("Templates/links.tpl");
148 <div
class="clear"></div
>
150 <div
class="footer-stopper"></div
>
151 <div
class="clear"></div
>
154 include("Templates/footer.tpl");
155 include("Templates/res.tpl");
160 Calculated in
<b
><?php
161 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
164 <br
/>Server time
: <span id
="tp1" class="b"><?php
echo date('H:i:s'); ?
></span
>