just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / plus.php
blobe8c6b05ea248df410fa18c2d9a4a0d9025ea7606
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename plus.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);
25 <!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 <?php
67 if(isset($_GET['id'])) {
68 $id = $_GET['id'];
69 } else {
70 $id = "";
72 if ($id == "") {
73 include("Templates/Plus/1.tpl");
75 if ($id == 2) {
76 include("Templates/Plus/2.tpl");
78 if ($id == 3) {
79 include("Templates/Plus/3.tpl");
81 if ($id == 4) {
82 include("Templates/Plus/4.tpl");
84 if ($id == 5) {
85 include("Templates/Plus/5.tpl");
87 if ($id == 7) {
88 include("Templates/Plus/7.tpl");
90 if ($id == 8) {
91 include("Templates/Plus/8.tpl");
93 if ($id == 9) {
94 include("Templates/Plus/9.tpl");
96 if ($id == 10) {
97 include("Templates/Plus/10.tpl");
99 if ($id == 11) {
100 include("Templates/Plus/11.tpl");
102 if ($id == 12) {
103 include("Templates/Plus/12.tpl");
105 if ($id == 13) {
106 include("Templates/Plus/13.tpl");
108 if ($id == 14) {
109 include("Templates/Plus/14.tpl");
113 <div id="side_info">
114 <?php
115 include("Templates/quest.tpl");
116 include("Templates/news.tpl");
117 include("Templates/multivillage.tpl");
118 include("Templates/links.tpl");
120 </div>
121 <div class="clear"></div>
122 </div>
123 <div class="footer-stopper"></div>
124 <div class="clear"></div>
126 <?php
127 include("Templates/footer.tpl");
128 include("Templates/res.tpl");
130 <div id="stime">
131 <div id="ltime">
132 <div id="ltimeWrap">
133 Calculated in <b><?php
134 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
135 ?></b> ms
137 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
138 </div>
139 </div>
140 </div>
142 <div id="ce"></div>
143 </body>
144 </html>