just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / karte.php
blob2d47fa89c37cb1251a4e93780fc5ef2997dd63c5
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename karte.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 if(isset($_GET['newdid'])) {
17 $_SESSION['wid'] = $_GET['newdid'];
18 header("Location: ".$_SERVER['PHP_SELF']);
20 else {
21 $building->procBuild($_GET);
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25 <html>
26 <head>
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" />
35 <script src="mt-full.js?0ac36" type="text/javascript"></script>
36 <script src="unx.js?0ac36" type="text/javascript"></script>
37 <script src="new.js?0ac36" type="text/javascript"></script>
38 <link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
39 <link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
40 <?php
41 if($session->gpack == null || GP_ENABLE == false) {
42 echo "
43 <link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
44 <link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
45 } else {
46 echo "
47 <link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
48 <link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
51 <script type="text/javascript">
53 window.addEvent('domready', start);
54 </script>
55 </head>
58 <body class="v35 ie ie8">
59 <div class="wrapper">
60 <img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
61 <div id="dynamic_header">
62 </div>
63 <?php include("Templates/header.tpl"); ?>
64 <div id="mid">
65 <?php include("Templates/menu.tpl");
66 if(isset($_GET['d']) && isset($_GET['c'])) {
67 if($generator->getMapCheck($_GET['d']) == $_GET['c']) {
68 include("Templates/Map/vilview.tpl");
70 else {
71 header("Location: dorf1.php");
74 else {
75 include("Templates/Map/mapview.tpl");
78 <div id="side_info">
79 <?php
80 include("Templates/quest.tpl");
81 include("Templates/news.tpl");
82 include("Templates/multivillage.tpl");
83 include("Templates/links.tpl");
85 </div>
86 <div class="clear"></div>
87 </div>
88 <div class="footer-stopper"></div>
89 <div class="clear"></div>
91 <?php
92 include("Templates/footer.tpl");
93 include("Templates/res.tpl");
95 <div id="stime">
96 <div id="ltime">
97 <div id="ltimeWrap">
98 Calculated in <b><?php
99 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
100 ?></b> ms
102 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
103 </div>
104 </div>
105 </div>
106 <div id="ce"></div>
107 </body>
108 </html>