removed some lines that bugged oases takeover oases dose-not need to take ownership...
[travianx.git] / karte2.php
blob9af729d6cea283f5e4097bbdf0e5c610cdb0e90e
1 <?php
3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename karte2.php ##
7 ## Developed by: Advocaite ##
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-core.js" type="text/javascript"></script>
36 <script src="unx.js" type="text/javascript"></script>
37 <script src="mt-more.js" 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 onload="start()">
60 <?php
61 if(isset($_GET['d']) && isset($_GET['c'])) {
62 if($generator->getMapCheck($_GET['d']) == $_GET['c']) {
63 include("Templates/Map/vilview.tpl");
65 else {
66 header("Location: dorf1.php");
69 else {
70 include("Templates/Map/mapviewlarge.tpl");
74 <div id="stime">
75 <div id="ltime">
76 <div id="ltimeWrap">
77 Calculated in <b><?php
78 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
79 ?></b> ms
81 <br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
82 </div>
83 </div>
84 </div>
85 <div id="ce"></div>
86 </body>
87 </html>