forked from ProjectEQ/peqphpeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
154 lines (144 loc) · 3.75 KB
/
index.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
$current_revision = "5 January 2019";
require_once("config.php");
require_once("lib/logging.php");
if ($mysql_class == "mysqli")
require_once("classes/mysqli.php");
else
require_once("classes/mysql.php");
require_once("classes/template.php");
require_once("classes/session.php");
require_once("lib/common.php");
require_once("lib/data.php");
$editor = (isset($_GET['editor']) ? $_GET['editor'] : '');
$action = (isset($_GET['action']) ? $_GET['action'] : 0);
$npcid = (isset($_GET['npcid']) ? $_GET['npcid'] : null);
$z = (isset($_GET['z']) ? $_GET['z'] : '');
$zoneid = (isset($_GET['zoneid']) ? $_GET['zoneid'] : '');
$fid = (isset($_GET['fid']) ? $_GET['fid'] : '');
$tskid = (isset($_GET['tskid']) ? $_GET['tskid'] : '');
$ts = (isset($_GET['ts']) ? $_GET['ts'] : '');
$rec = (isset($_GET['rec']) ? intval($_GET['rec']) : '0');
$spellset = (isset($_GET['spellset']) ? $_GET['spellset'] : '');
$playerid = (isset($_GET['playerid']) ? $_GET['playerid'] : null);
$acctid = (isset($_GET['acctid']) ? $_GET['acctid'] : null);
$guildid = (isset($_GET['guildid']) ? $_GET['guildid'] : null);
$aaid = (isset($_GET['aaid']) ? $_GET['aaid'] : null);
$nseid = (isset($_GET['nseid']) ? $_GET['nseid'] : null);
$searchbar = '';
$body = '';
$javascript = '';
$breadcrumbs = '';
$headbar = '';
require_once('lib/headbars.php');
require_once('lib/breadcrumbs.php');
if (isset($_GET['admin'])) {
if (session::is_admin()) {
require_once('lib/admin.php');
}
}
switch ($editor) {
case '':
$body = new Template("templates/intro.tmpl.php");
$body->set('current_revision', $current_revision);
break;
case 'loot':
require_once('lib/loot.php');
break;
case 'npc':
require_once('lib/npc.php');
break;
case 'spawn':
require_once('lib/spawn.php');
break;
case 'merchant':
require_once('lib/merchant.php');
break;
case 'faction':
require_once('lib/faction.php');
break;
case 'spellset':
require_once('lib/spellset.php');
break;
case 'tradeskill':
require_once('lib/tradeskill.php');
break;
case 'zone':
require_once('lib/zone.php');
break;
case 'misc':
require_once('lib/misc.php');
break;
case 'server':
require_once('lib/server.php');
break;
case 'adventures':
require_once('lib/adventures.php');
break;
case 'tasks':
require_once('lib/tasks.php');
break;
case 'items':
require_once('lib/items.php');
break;
case 'player':
require_once('lib/player.php');
break;
case 'spells':
require_once('lib/spellenums.php');
require_once('lib/spells.php');
break;
case 'spellops':
require_once('lib/spellops.php');
break;
case 'account':
require_once('lib/account.php');
break;
case 'guild':
require_once('lib/guild.php');
break;
case 'mail':
require_once('lib/mail.php');
break;
case 'aa':
require_once('lib/spellenums.php');
require_once('lib/aa.php');
break;
case 'qglobal':
require_once('lib/qglobal.php');
break;
case 'util':
require_once('lib/util.php');
break;
case 'altcur':
require_once('lib/altcur.php');
break;
case 'quest':
require_once('lib/quest.php');
break;
case 'inv':
require_once('lib/inventory.php');
break;
case 'keys':
require_once('lib/keys.php');
break;
case 'titles':
require_once('lib/titles.php');
break;
case 'auras':
require_once('lib/auras.php');
break;
case 'pvp':
require_once('lib/pvp.php');
break;
case 'databuckets':
require_once('lib/databuckets.php');
break;
}
$tmpl->set('javascript', $javascript);
$tmpl->set('headbar', $headbar);
$tmpl->set('searchbar', $searchbar);
$tmpl->set('breadcrumbs', $breadcrumbs);
$tmpl->set('body', $body);
echo $tmpl->fetch('templates/index.tmpl.php');
?>