3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename dorf1.php ##
7 ## Developed by: Dzoki ##
8 ## License: TravianX Project ##
9 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
11 #################################################################################
14 include("GameEngine/Village.php");
15 $start = $generator->pageLoadTimeStart();
16 if(isset($_GET['ok'])){
17 $database->updateUserField($session->username
,'ok','0','0'); $_SESSION['ok'] = '0'; }
18 if(isset($_GET['newdid'])) {
19 $_SESSION['wid'] = $_GET['newdid'];
20 header("Location: ".$_SERVER['PHP_SELF']);
23 $building->procBuild($_GET);
26 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
29 <title
><?php
echo SERVER_NAME ?
></title
>
30 <link REL
="shortcut icon" HREF
="favicon.ico"/>
31 <meta http
-equiv
="cache-control" content
="max-age=0" />
32 <meta http
-equiv
="pragma" content
="no-cache" />
33 <meta http
-equiv
="expires" content
="0" />
34 <meta http
-equiv
="imagetoolbar" content
="no" />
35 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
36 <script src
="mt-full.js?0faaa" type
="text/javascript"></script
>
37 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
38 <script src
="new.js?0faaa" type
="text/javascript"></script
>
39 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?e21d2" rel
="stylesheet" type
="text/css" />
40 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel
="stylesheet" type
="text/css" />
42 if($session->gpack
== null || GP_ENABLE
== false) {
44 <link href='".GP_LOCATE
."travian.css?e21d2' rel='stylesheet' type='text/css' />
45 <link href='".GP_LOCATE
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
48 <link href='".$session->gpack
."travian.css?e21d2' rel='stylesheet' type='text/css' />
49 <link href='".$session->gpack
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
52 <script type
="text/javascript">
53 window
.addEvent('domready', start
);
58 <body
class="v35 ie ie8">
60 <img style
="filter:chroma();" src
="img/x.gif" id
="msfilter" alt
="" />
61 <div id
="dynamic_header">
63 <?php
include("Templates/header.tpl"); ?
>
65 <?php
include("Templates/menu.tpl"); ?
>
66 <div id
="content" class="village1">
67 <h1
><?php
echo $village->vname
; if($village->loyalty
!='100'){ if($village->loyalty
>'33'){ $color="gr"; }else{ $color="re"; } ?
><div id
="loyality" class="<?php echo $color; ?>">Loyalty
: <?php
echo $village->loyalty
; ?
>%
</div
><?php
} ?
></h1
>
68 <?php
include("Templates/field.tpl");
71 <div id
="map_details">
73 include("Templates/movement.tpl");
74 include("Templates/production.tpl");
75 include("Templates/troops.tpl");
77 if($building->NewBuilding
) {
78 include("Templates/Building.tpl");
84 include("Templates/quest.tpl");
85 include("Templates/news.tpl");
86 include("Templates/multivillage.tpl");
87 include("Templates/links.tpl");
90 <div
class="clear"></div
>
92 <div
class="footer-stopper"></div
>
93 <div
class="clear"></div
>
96 include("Templates/footer.tpl");
97 include("Templates/res.tpl");
102 Calculated in
<b
><?php
103 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
106 <br
/>Server time
: <span id
="tp1" class="b"><?php
echo date('H:i:s'); ?
></span
>