just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / nachrichten.php
blob3ff4f959b11ca671fa0cfaed7cab121c3e2e6e4a
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename nachrichten.php ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
10 ## ##
11 #################################################################################
14 include("GameEngine/Village.php");
15 $start = $generator->pageLoadTimeStart();
16 $message->procMessage($_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 <meta name="X-UA-Compatible" content="IE=8" />
29 <script src="mt-full.js?f4b7c" type="text/javascript"></script>
30 <script src="unx.js?f4b7c" type="text/javascript"></script>
31 <script src="new.js?f4b7c" type="text/javascript"></script>
32 <link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
33 <link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
34 <?php
35 if($session->gpack == null || GP_ENABLE == false) {
36 echo "
37 <link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
38 <link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
39 } else {
40 echo "
41 <link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
42 <link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
45 <script type="text/javascript">
47 window.addEvent('domready', start);
48 </script>
49 </head>
52 <body class="v35 ie ie8">
53 <div class="wrapper">
54 <img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
55 <div id="dynamic_header">
56 </div>
57 <?php include("Templates/header.tpl"); ?>
59 <div id="mid">
60 <?php include("Templates/menu.tpl");
61 if(isset($_GET['id']) && !isset($_GET['t'])) {
62 $message->loadMessage($_GET['id']);
63 include("Templates/Message/read.tpl");
65 else if(isset($_GET['t'])) {
66 switch($_GET['t']) {
67 case 1:
68 if(isset($_GET['id'])) {
69 $id = $_GET['id'];
71 include("Templates/Message/write.tpl");
72 break;
73 case 2:
74 include("Templates/Message/sent.tpl");
75 break;
76 case 3:
77 if($session->plus) {
78 include("Templates/Message/archive.tpl");
80 break;
81 case 4:
82 if($session->plus) {
83 $message->loadNotes();
84 include("Templates/Message/notes.tpl");
86 break;
87 default:
88 include("Templates/Message/inbox.tpl");
89 break;
92 else {
93 include("Templates/Message/inbox.tpl");
97 <div id="side_info">
98 <?php
99 include("Templates/quest.tpl");
100 include("Templates/news.tpl");
101 include("Templates/multivillage.tpl");
102 include("Templates/links.tpl");
104 </div>
105 <div class="clear"></div>
106 </div>
107 <div class="footer-stopper"></div>
108 <div class="clear"></div>
109 <?php
110 include("Templates/footer.tpl");
111 include("Templates/res.tpl");
113 <div id="stime">
114 <div id="ltime">
115 <div id="ltimeWrap">
116 Calculated in <b><?php
117 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
118 ?></b> ms
120 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
121 </div>
122 </div>
123 </div>
124 <div id="ce"></div>
125 </body>
126 </html>