just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / ajax.php
blob9bddd09457b4d40de0efba7eacbd3a73204240da
1 <?php
2 #################################################################################
3 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
4 ## --------------------------------------------------------------------------- ##
5 ## Filename ajax.php ##
6 ## Developed by: Dzoki ##
7 ## License: TravianX Project ##
8 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
9 ## ##
10 #################################################################################
12 switch($_GET['f']) {
13 case 'k7':
14 $x = $_GET['x'];
15 $y = $_GET['y'];
16 $xx = $_GET['xx'];
17 $yy = $_GET['yy'];
18 $howmany = $x - $xx;
19 if($howmany == 12 || $howmany == -12) {
20 include("Templates/Ajax/mapscroll2.tpl");
22 else {
23 include("Templates/Ajax/mapscroll.tpl");
25 break;
26 case 'kp':
27 $z = $_GET['z'];
28 //include("Templates/Ajax/plusmap.tpl");
29 break;
30 case 'qst':
32 if (isset($_GET['qact'])){
33 $qact=$_GET['qact'];
34 }else {
35 $qact=null;
37 if (isset($_GET['qact2'])){
38 $qact2=$_GET['qact2'];
39 }else {
40 $qact2=null;
42 include("Templates/Ajax/quest_core.tpl");
43 break;