3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename spieler.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 $profile->procProfile($_POST);
17 $profile->procSpecial($_GET);
18 if(isset($_GET['newdid'])) {
19 $_SESSION['wid'] = $_GET['newdid'];
20 header("Location: ".$_SERVER['PHP_SELF']);
23 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <title
><?php
echo SERVER_NAME ?
></title
>
27 <link REL
="shortcut icon" HREF
="favicon.ico"/>
28 <meta http
-equiv
="cache-control" content
="max-age=0" />
29 <meta http
-equiv
="pragma" content
="no-cache" />
30 <meta http
-equiv
="expires" content
="0" />
31 <meta http
-equiv
="imagetoolbar" content
="no" />
32 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
33 <script src
="mt-full.js?0faaa" type
="text/javascript"></script
>
34 <script src
="unx.js?0faaa" type
="text/javascript"></script
>
35 <script src
="new.js?0faaa" type
="text/javascript"></script
>
36 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel
="stylesheet" type
="text/css" />
37 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel
="stylesheet" type
="text/css" />
39 if($session->gpack
== null || GP_ENABLE
== false) {
41 <link href='".GP_LOCATE
."travian.css?e21d2' rel='stylesheet' type='text/css' />
42 <link href='".GP_LOCATE
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
45 <link href='".$session->gpack
."travian.css?e21d2' rel='stylesheet' type='text/css' />
46 <link href='".$session->gpack
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
49 <script type
="text/javascript">
51 window
.addEvent('domready', start
);
56 <body
class="v35 ie ie8">
58 <img style
="filter:chroma();" src
="img/x.gif" id
="msfilter" alt
="" />
59 <div id
="dynamic_header">
61 <?php
include("Templates/header.tpl"); ?
>
63 <?php
include("Templates/menu.tpl"); ?
>
64 <script type
="text/javascript">
65 function getMouseCoords(e
) {
67 if (!e
) var e
= window
.event
;
68 if (e
.pageX || e
.pageY
) {
72 else if (e
.clientX || e
.clientY
) {
73 coords
.x
= e
.clientX + document
.body
.scrollLeft
74 + document
.documentElement
.scrollLeft
;
75 coords
.y
= e
.clientY + document
.body
.scrollTop
76 + document
.documentElement
.scrollTop
;
81 function med_mouseMoveHandler(e
, desc_string
){
82 var coords
= getMouseCoords(e
);
83 med_showDescription(coords
, desc_string
);
86 function med_closeDescription(){
87 var layer
= document
.getElementById("medal_mouseover");
88 layer
.className
= "hide";
91 function init_local(){
96 layer
= document
.createElement("div");
97 layer
.id
= "medal_mouseover";
98 layer
.className
= "hide";
99 document
.body
.appendChild(layer
);
102 function med_showDescription(coords
, desc_string
){
103 var layer
= document
.getElementById("medal_mouseover");
104 layer
.style
.top
= (coords
.y +
25)+
"px";
105 layer
.style
.left
= (coords
.x
- 20) +
"px";
106 layer
.className
= "";
107 layer
.innerHTML
= desc_string
;
110 <div id
="content" class="player">
112 if(isset($_GET['uid'])) {
113 if($_GET['uid'] >= 2) {
114 $user = $database->getUserArray($_GET['uid'],1);
115 if(isset($user['id'])){
116 include("Templates/Profile/overview.tpl");
118 include("Templates/Profile/notfound.tpl");
122 include("Templates/Profile/special.tpl");
125 else if (isset($_GET['s'])) {
126 if($_GET['s'] == 1) {
127 include("Templates/Profile/profile.tpl");
129 if($_GET['s'] == 2) {
130 include("Templates/Profile/preference.tpl");
132 if($_GET['s'] == 3) {
133 include("Templates/Profile/account.tpl");
135 if($_GET['s'] == 4) {
136 include("Templates/Profile/graphic.tpl");
144 include("Templates/quest.tpl");
145 include("Templates/news.tpl");
146 include("Templates/multivillage.tpl");
147 include("Templates/links.tpl");
150 <div
class="clear"></div
>
152 <div
class="footer-stopper"></div
>
153 <div
class="clear"></div
>
156 include("Templates/footer.tpl");
157 include("Templates/res.tpl");
162 Calculated in
<b
><?php
163 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
166 <br
/>Server time
: <span id
="tp1" class="b"><?php
echo date('H:i:s'); ?
></span
>