[r3] Deleted config.php packed by error.
[travianx.git] / berichte.php
blob82f7756ad56d1b0f49a0b30b01c75cb3fa38e436
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename berichte.php ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
10 ## ##
11 #################################################################################
13 include("GameEngine/Village.php");
14 $start = $generator->pageLoadTimeStart();
15 $message->noticeType($_GET);
16 $message->procNotice($_POST);
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
19 <html>
20 <head>
21 <title><?php echo SERVER_NAME ?></title>
22 <link REL="shortcut icon" HREF="favicon.ico"/>
23 <meta http-equiv="cache-control" content="max-age=0" />
24 <meta http-equiv="pragma" content="no-cache" />
25 <meta http-equiv="expires" content="0" />
26 <meta http-equiv="imagetoolbar" content="no" />
27 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
28 <script src="mt-full.js?0faaa" type="text/javascript"></script>
29 <script src="unx.js?0faaa" type="text/javascript"></script>
30 <script src="new.js?0faaa" type="text/javascript"></script>
31 <link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
32 <link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
33 <?php
34 if($session->gpack == null || GP_ENABLE == false) {
35 echo "
36 <link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
37 <link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
38 } else {
39 echo "
40 <link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
41 <link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
44 <script type="text/javascript">
46 window.addEvent('domready', start);
47 </script>
48 </head>
51 <body class="v35 ie ie8">
52 <div class="wrapper">
53 <img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
54 <div id="dynamic_header">
55 </div>
56 <?php include("Templates/header.tpl"); ?>
57 <div id="mid">
58 <?php include("Templates/menu.tpl"); ?>
59 <div id="content" class="reports">
60 <h1>Reports</h1>
61 <div id="textmenu">
62 <a href="berichte.php" <?php if (!isset($_GET['t'])) { echo "class=\"selected \""; } ?>>All</a>
63 | <a href="berichte.php?t=2" <?php if (isset($_GET['t']) && $_GET['t'] == 2) { echo "class=\"selected \""; } ?>>Trade</a>
64 | <a href="berichte.php?t=1" <?php if (isset($_GET['t']) && $_GET['t'] == 1) { echo "class=\"selected \""; } ?>>Reinforcement</a>
65 | <a href="berichte.php?t=3" <?php if (isset($_GET['t']) && $_GET['t'] == 3) { echo "class=\"selected \""; } ?>>Attacks</a>
66 | <a href="berichte.php?t=4" <?php if (isset($_GET['t']) && $_GET['t'] == 4) { echo "class=\"selected \""; } ?>>Miscellaneous</a>
67 <?php if($session->plus) {
68 echo "| <a href=\"berichte.php?t=5\"";
69 if (isset($_GET['t']) && $_GET['t'] == 5) { echo "class=\"selected \""; }
70 echo ">Archive</a>";
73 </div>
74 <?php
75 if(isset($_GET['id'])) {
76 $type = ($message->readingNotice['ntype'] == 5)? $message->readingNotice['archive'] : $message->readingNotice['ntype'];
77 include("Templates/Notice/".$type.".tpl");
79 else {
80 include("Templates/Notice/all.tpl");
83 </div>
85 <div id="side_info">
86 <?php
87 include("Templates/quest.tpl");
88 include("Templates/news.tpl");
89 include("Templates/multivillage.tpl");
90 include("Templates/links.tpl");
92 </div>
93 <div class="clear"></div>
94 </div>
95 <div class="footer-stopper"></div>
96 <div class="clear"></div>
98 <?php
99 include("Templates/footer.tpl");
100 include("Templates/res.tpl");
102 <div id="stime">
103 <div id="ltime">
104 <div id="ltimeWrap">
105 Calculated in <b><?php
106 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
107 ?></b> ms
109 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
110 </div>
111 </div>
112 </div>
114 <div id="ce"></div>
115 </body>
116 </html>