just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / dorf2.php
bloba5904f18ada9e07a015fcce565436a807d53bf17
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename dorf2.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">
26 <html>
27 <head>
28 <title><?php echo SERVER_NAME ?></title>
29 <link REL="shortcut icon" HREF="favicon.ico"/>
30 <meta http-equiv="cache-control" content="max-age=0" />
31 <meta http-equiv="pragma" content="no-cache" />
32 <meta http-equiv="expires" content="0" />
33 <meta http-equiv="imagetoolbar" content="no" />
34 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
35 <script src="mt-full.js?0faaa" type="text/javascript"></script>
36 <script src="unx.js?0faaa" type="text/javascript"></script>
37 <script src="new.js?0faaa" 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 <div id="content" class="village2">
67 <h1><?php echo $village->vname; ?><br /></h1>
69 <?php include("Templates/dorf2.tpl");
70 if($building->NewBuilding) {
71 include("Templates/Building.tpl");
74 </div>
75 <div id="side_info">
76 <?php
77 include("Templates/quest.tpl");
78 include("Templates/news.tpl");
79 include("Templates/multivillage.tpl");
80 include("Templates/links.tpl");
82 </div>
83 <div class="clear"></div>
84 </div>
85 <div class="footer-stopper"></div>
86 <div class="clear"></div>
87 <?php
88 include("Templates/footer.tpl");
89 include("Templates/res.tpl");
91 <div id="stime">
92 <div id="ltime">
93 <div id="ltimeWrap">
94 Calculated in <b><?php
95 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
96 ?></b> ms
98 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
99 </div>
100 </div>
101 </div>
102 <div id="ce"></div>
103 </body>
104 </html>