forked from BikmullinDim/TravianT4Singleplayer
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathposition_details.php
77 lines (72 loc) · 2.06 KB
/
position_details.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include("GameEngine/Village.php");
$start = $generator->pageLoadTimeStart();
if(isset($_GET['newdid'])) {
$_SESSION['wid'] = $_GET['newdid'];
if(isset($_GET['x']) && isset($_GET['y'])) {
header("Location: ".$_SERVER['PHP_SELF']."?x=".$_GET['x']."&y=".$_GET['y']);
}else{
$havecoor = 1;
$coor = $database->getCoor($_SESSION['wid']);
header("Location: ".$_SERVER['PHP_SELF']."?x=".$coor['x']."&y=".$coor['y']);
}
}
else {
$building->procBuild($_GET);
}
if(!isset($_GET['x']) && !isset($_GET['y']) && !$havecoor) {
header("Location: ".$_SERVER['PHP_SELF']."?x=".$village->coor['x']."&y=".$village->coor['y']);
}
include "Templates/html.tpl";
?>
<body class="v35 webkit chrome map">
<div id="wrapper">
<img id="staticElements" src="img/x.gif" alt="" />
<div id="logoutContainer">
<a id="logout" href="logout.php" title="<?php echo LOGOUT; ?>"> </a>
</div>
<div class="bodyWrapper">
<img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
<div id="header">
<div id="mtop">
<a id="logo" href="<?php echo HOMEPAGE; ?>" target="_blank" title="<?php echo SERVER_NAME ?>"></a>
<?php
include("Templates/navigation.tpl");
?>
<div class="clear"></div>
</div>
</div>
<div id="mid">
<a id="ingameManual" href="help.php"><img class="question" alt="Help" src="img/x.gif"></a>
<div class="clear"></div>
<div id="contentOuterContainer">
<div class="contentTitle"> </div>
<div class="contentContainer">
<?php
if(isset($_GET['x']) && isset($_GET['y'])) {
if($database->getVilWref($_GET['x'],$_GET['y'])) {
include("Templates/Map/vilview.tpl");
}
else {
include("Templates/Map/mapview.tpl");
}
}
?>
<div class="clear"> </div>
<div class="clear"></div>
</div>
<div class="contentFooter"> </div>
</div>
<?php
include("Templates/sideinfo.tpl");
include("Templates/footer.tpl");
include("Templates/header.tpl");
include("Templates/res.tpl");
include("Templates/vname.tpl");
include("Templates/quest.tpl");
?>
</div>
<div id="ce"></div>
</div>
</body>
</html>