-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathajax.php
More file actions
56 lines (52 loc) · 1.36 KB
/
ajax.php
File metadata and controls
56 lines (52 loc) · 1.36 KB
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
<?php
$IncludeDir = dirname($_SERVER['SCRIPT_FILENAME']);
$IncludeDir = str_replace('includes', '', $IncludeDir); #echo $IncludeDir; exit;
require_once($IncludeDir . '/includes/config.php');
require_once($IncludeDir . '/includes/functions.php');
if ($_GET['M'] == "Items") {
include('modules/ItemEditor/ajax/ajax.php');
}
if ($_GET['M'] == "TaskEditor") {
include('modules/TaskEditor/js/ajax.php');
}
if ($_GET['M'] == "NPC") {
include('modules/NPC/ajax/ajax.php');
}
if ($_GET['M'] == "CM") {
include('modules/commander/js/ajax.php');
}
if ($_GET['M'] == "DBAuth") {
include('modules/DBAuth/ajax.php');
}
if ($_GET['M'] == "SpellEditor") {
include('modules/SpellEditor/ajax.php');
}
if ($_GET['M'] == "QueryServ") {
include('modules/QueryServ/js/ajax.php');
}
if ($_GET['M'] == "dbstr") {
include('modules/dbstr/js/ajax.php');
}
if ($_GET['M'] == "ZT") {
include('modules/Zone_Tools/ajax/ajax.php');
}
if ($_GET['M'] == "race_viewer") {
include('modules/RaceViewer/ajax/ajax.php');
}
if ($_GET['M'] == "Character") {
include('modules/Character/ajax/ajax.php');
}
if ($_GET['M'] == "quests") {
include('modules/quests/ajax/ajax.php');
}
if (isset($_GET['login'])) {
SetEOCLogin($_GET);
exit();
}
if (isset($_GET['logout'])) {
$_SESSION['login'] = 0;
$_SESSION['user'] = '';
$_SESSION['pass'] = '';
exit();
}
?>