3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
11 #################################################################################
13 include("GameEngine/Village.php");
14 include("GameEngine/Units.php");
16 $start = $generator->pageLoadTimeStart();
17 if(isset($_GET['newdid'])) {
18 $_SESSION['wid'] = $_GET['newdid'];
19 header("Location: ".$_SERVER['PHP_SELF']);
22 $building->procBuild($_GET);
25 if(isset($_GET['id'])) {
28 if(isset($_GET['w'])) {
31 if(isset($_GET['r'])) {
34 if(isset($_GET['o'])) {
37 $too = $database->getVillageField($oid,"owner");
38 if($too['owner'] != $session->uid
){$disabledr ="disabled=disabled";}else{
41 $disabled ="disabled=disabled";
42 $checked ="checked=checked";
45 $process = $units->procUnits($_POST);
48 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
52 <title
><?php
echo SERVER_NAME ?
></title
>
53 <link REL
="shortcut icon" HREF
="favicon.ico"/>
54 <meta http
-equiv
="cache-control" content
="max-age=0" />
55 <meta http
-equiv
="pragma" content
="no-cache" />
56 <meta http
-equiv
="expires" content
="0" />
57 <meta http
-equiv
="imagetoolbar" content
="no" />
58 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
59 <script src
="mt-full.js?0faaa" type
="text/javascript"></script
>
60 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
61 <script src
="new.js?0faaa" type
="text/javascript"></script
>
62 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel
="stylesheet" type
="text/css" />
63 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel
="stylesheet" type
="text/css" />
65 if($session->gpack
== null || GP_ENABLE
== false) {
67 <link href='".GP_LOCATE
."travian.css?e21d2' rel='stylesheet' type='text/css' />
68 <link href='".GP_LOCATE
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
71 <link href='".$session->gpack
."travian.css?e21d2' rel='stylesheet' type='text/css' />
72 <link href='".$session->gpack
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
75 <script type
="text/javascript">
77 window
.addEvent('domready', start
);
82 <body
class="v35 ie ie8">
84 <img style
="filter:chroma();" src
="img/x.gif" id
="msfilter" alt
="" />
85 <div id
="dynamic_header">
87 <?php
include("Templates/header.tpl"); ?
>
89 <?php
include("Templates/menu.tpl"); ?
>
90 <div id
="content" class="a2b">
93 include("Templates/a2b/newdorf.tpl");
96 $enforce=$database->getEnforceArray($w,0);
97 if($enforce['vref']==$village->wid
){
98 $to = $database->getVillage($enforce['from']); $ckey=$w;
99 include("Templates/a2b/sendback_".$database->getUserField($to['owner'],'tribe',0).".tpl");
101 include("Templates/a2b/units_".$session->tribe
.".tpl");
102 include("Templates/a2b/search.tpl");
104 } else if (isset($r)){
105 $enforce=$database->getEnforceArray($r,0);
106 if($enforce['from']==$village->wid
){
107 $to = $database->getVillage($enforce['from']); $ckey=$r;
108 include("Templates/a2b/sendback_".$database->getUserField($to['owner'],'tribe',0).".tpl");
110 include("Templates/a2b/units_".$session->tribe
.".tpl");
111 include("Templates/a2b/search.tpl");
114 if (isset($process['0'])){
115 $coor = $database->getCoor($process['0']);
116 include("Templates/a2b/attack_".$session->tribe
.".tpl");
118 include("Templates/a2b/units_".$session->tribe
.".tpl");
119 include("Templates/a2b/search.tpl");
127 include("Templates/quest.tpl");
128 include("Templates/news.tpl");
129 include("Templates/multivillage.tpl");
130 include("Templates/links.tpl");
133 <div
class="clear"></div
>
135 <div
class="footer-stopper"></div
>
136 <div
class="clear"></div
>
138 include("Templates/footer.tpl");
139 include("Templates/res.tpl");
144 <?php
echo CALCULATED
; ?
> <b
><?php
145 echo round(($generator->pageLoadTimeEnd()-$start)*1000);?
></b
> ms
147 <br
/><?php
echo SERVER_TIME
; ?
> <span id
="tp1" class="b"><?php
echo date('H:i:s'); ?
></span
>