3 #################################################################################
4 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
5 ## --------------------------------------------------------------------------- ##
6 ## Filename allianz.php ##
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/Chat.php");
15 $start = $generator->pageLoadTimeStart();
16 $alliance->procAlliance($_GET);
19 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
22 <title
><?php
echo SERVER_NAME ?
></title
>
23 <link REL
="shortcut icon" HREF
="favicon.ico"/>
24 <meta http
-equiv
="cache-control" content
="max-age=0" />
25 <meta http
-equiv
="pragma" content
="no-cache" />
26 <meta http
-equiv
="expires" content
="0" />
27 <meta http
-equiv
="imagetoolbar" content
="no" />
28 <meta http
-equiv
="content-type" content
="text/html; charset=UTF-8" />
29 <script src
="mt-full.js" type
="text/javascript"></script
>
30 <script src
="unx.js" type
="text/javascript"></script
>
31 <script src
="new.js" type
="text/javascript"></script
>
32 <link href
="<?php echo GP_LOCATE; ?>lang/en/lang.css" rel
="stylesheet" type
="text/css" />
33 <link href
="<?php echo GP_LOCATE; ?>lang/en/compact.css" rel
="stylesheet" type
="text/css" />
35 if($session->gpack
== null || GP_ENABLE
== false) {
37 <link href='".GP_LOCATE
."travian.css?e21d2' rel='stylesheet' type='text/css' />
38 <link href='".GP_LOCATE
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
41 <link href='".$session->gpack
."travian.css?e21d2' rel='stylesheet' type='text/css' />
42 <link href='".$session->gpack
."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
45 <script type
="text/javascript">
47 window
.addEvent('domready', start
);
52 <body
class="v35 ie ie8">
54 <img style
="filter:chroma();" src
="img/x.gif" id
="msfilter" alt
="" />
55 <div id
="dynamic_header">
57 <?php
include("Templates/header.tpl"); ?
>
59 <?php
include("Templates/menu.tpl");
61 <script type
="text/javascript">
62 function getMouseCoords(e
) {
64 if (!e
) var e
= window
.event
;
65 if (e
.pageX || e
.pageY
) {
69 else if (e
.clientX || e
.clientY
) {
70 coords
.x
= e
.clientX + document
.body
.scrollLeft
71 + document
.documentElement
.scrollLeft
;
72 coords
.y
= e
.clientY + document
.body
.scrollTop
73 + document
.documentElement
.scrollTop
;
78 function med_mouseMoveHandler(e
, desc_string
){
79 var coords
= getMouseCoords(e
);
80 med_showDescription(coords
, desc_string
);
83 function med_closeDescription(){
84 var layer
= document
.getElementById("medal_mouseover");
85 layer
.className
= "hide";
88 function init_local(){
93 layer
= document
.createElement("div");
94 layer
.id
= "medal_mouseover";
95 layer
.className
= "hide";
96 document
.body
.appendChild(layer
);
99 function med_showDescription(coords
, desc_string
){
100 var layer
= document
.getElementById("medal_mouseover");
101 layer
.style
.top
= (coords
.y +
25)+
"px";
102 layer
.style
.left
= (coords
.x
- 20) +
"px";
103 layer
.className
= "";
104 layer
.innerHTML
= desc_string
;
109 if(isset($_GET['s']) && $_GET['s']== 2) {
110 echo '<div id="content" class="forum">';
112 echo '<div id="content" class="alliance">';
115 if(isset($_GET['s'])) {
118 include("Templates/Alliance/forum.tpl");
121 include("Templates/Alliance/attacks.tpl");
124 include("Templates/Alliance/news.tpl");
127 include("Templates/Alliance/option.tpl");
130 include("Templates/Alliance/chat.tpl");
134 include("Templates/Alliance/overview.tpl");
138 } elseif (isset($_POST['o'])) {
139 switch($_POST['o']) {
141 if (isset($_POST['s'])==5 && isset($_POST['a_user'])){
142 $alliance->procAlliForm($_POST);
143 //echo "Funcion para el cambio de nombre de la alianza";
144 include("Templates/Alliance/changepos.tpl");
146 include("Templates/Alliance/assignpos.tpl");
150 if (isset($_POST['s'])==5 && isset($_POST['a'])==2){
151 $alliance->procAlliForm($_POST);
152 include("Templates/Alliance/kick.tpl");
154 include("Templates/Alliance/kick.tpl");
158 if (isset($_POST['s'])==5 && isset($_POST['a'])==3 ){
159 $alliance->procAlliForm($_POST);
160 //echo "Funcion para el cambio de nombre de la alianza";
161 include("Templates/Alliance/allidesc.tpl");
163 include("Templates/Alliance/allidesc.tpl");
167 if (isset($_POST['s'])==5 && isset($_POST['a'])==4 ){
168 $alliance->procAlliForm($_POST);
169 //echo "Funcion para el cambio de nombre de la alianza";
170 include("Templates/Alliance/invite.tpl");
172 include("Templates/Alliance/invite.tpl");
176 include("Templates/Alliance/linkforum.tpl");
179 if (isset($_POST['s'])==5 && isset($_POST['a'])==6 ){
180 $alliance->procAlliForm($_POST);
181 //echo "Funcion para el cambio de nombre de la alianza";
182 include("Templates/Alliance/chgdiplo.tpl");
184 include("Templates/Alliance/chgdiplo.tpl");
188 if (isset($_POST['s'])==5 && isset($_POST['a'])==11 ){
189 $alliance->procAlliForm($_POST);
190 //echo "Funcion para el cambio de nombre de la alianza";
191 include("Templates/Alliance/quitalli.tpl");
193 include("Templates/Alliance/quitalli.tpl");
197 include("Templates/Alliance/option.tpl");
200 if (isset($_POST['s'])==5 && isset($_POST['a'])==100 ){
201 $alliance->procAlliForm($_POST);
202 //echo "Funcion para el cambio de nombre de la alianza";
203 include("Templates/Alliance/changename.tpl");
205 include("Templates/Alliance/changename.tpl");
211 include("Templates/Alliance/overview.tpl");
218 include("Templates/quest.tpl");
219 include("Templates/news.tpl");
220 include("Templates/multivillage.tpl");
221 include("Templates/links.tpl");
224 <div
class="clear"></div
>
226 <div
class="footer-stopper"></div
>
227 <div
class="clear"></div
>
230 include("Templates/footer.tpl");
231 include("Templates/res.tpl");
236 <?php
echo CALCULATED
; ?
> <b
><?php
237 echo round(($generator->pageLoadTimeEnd()-$start)*1000);
240 <br
/><?php
echo SERVER_TIME
; ?
> <span id
="tp1" class="b"><?php
echo date('H:i:s'); ?
></span
>