Попытка подключения creature_template_spells.))
[cswow.git] / site_menu.php
blob146a43db79e9c57f85feff3e527624cce84f1723
1 <?php
2 include_once("include/functions.php");
3 include_once("include/map_data.php");
5 // Íóæíî ñîåäåíèòñÿ ñ áàçîé (÷àñòü ìåíþøåê òðåáóåò íàçâàíèé îòòóäà
6 include_once("include/DbSimple/Generic.php");
7 $wDB = DbSimple_Generic::connect("mysql://$config[wusername]:$config[wpassword]@$config[whostname]/$config[wdbName]");
8 $wDB->query("SET NAMES ?s", $config['client_charset']);
10 $menu = array(
11 array(
12 'ico'=>'icon-news',
13 'name'=>$lang['find'],
14 'show'=>true,
15 'sub'=>array(
16 array('link'=>'index.php', 'text'=>$lang['main']),
17 array('link'=>'?s=i',
18 'text'=>$lang['item_lookup'],
19 'sub'=>array(
20 array('link'=>'?s=i&class=0',
21 'text'=>getClassName(0,0),
22 'sub'=>array(
23 array('link'=>'?s=i&class=0.0', 'text'=>getSubclassName(0,0,0)),
24 array('link'=>'?s=i&class=0.1', 'text'=>getSubclassName(0,1,0)),
25 array('link'=>'?s=i&class=0.2', 'text'=>getSubclassName(0,2,0)),
26 array('link'=>'?s=i&class=0.3', 'text'=>getSubclassName(0,3,0)),
27 array('link'=>'?s=i&class=0.4', 'text'=>getSubclassName(0,4,0)),
28 array('link'=>'?s=i&class=0.5', 'text'=>getSubclassName(0,5,0)),
29 array('link'=>'?s=i&class=0.6', 'text'=>getSubclassName(0,6,0)),
30 array('link'=>'?s=i&class=0.7', 'text'=>getSubclassName(0,7,0)),
31 array('link'=>'?s=i&class=0.8', 'text'=>getSubclassName(0,8,0)))
33 array('link'=>'?s=i&class=1',
34 'text'=>getClassName(1,0),
35 'sub'=>array(
36 array('link'=>'?s=i&class=1.0', 'text'=>getSubclassName(1,0,0)),
37 array('link'=>'?s=i&class=1.1', 'text'=>getSubclassName(1,1,0)),
38 array('link'=>'?s=i&class=1.2', 'text'=>getSubclassName(1,2,0)),
39 array('link'=>'?s=i&class=1.3', 'text'=>getSubclassName(1,3,0)),
40 array('link'=>'?s=i&class=1.4', 'text'=>getSubclassName(1,4,0)),
41 array('link'=>'?s=i&class=1.5', 'text'=>getSubclassName(1,5,0)),
42 array('link'=>'?s=i&class=1.6', 'text'=>getSubclassName(1,6,0)),
43 array('link'=>'?s=i&class=1.7', 'text'=>getSubclassName(1,7,0)),
44 array('link'=>'?s=i&class=1.8', 'text'=>getSubclassName(1,8,0)))
46 array('link'=>'?s=i&class=2',
47 'text'=>getClassName(2,0),
48 'sub'=>array(
49 array('link'=>'?s=i&class=2.0', 'text'=>getSubclassName(2,0,0)),
50 array('link'=>'?s=i&class=2.1', 'text'=>getSubclassName(2,1,0)),
51 array('link'=>'?s=i&class=2.2', 'text'=>getSubclassName(2,2,0)),
52 array('link'=>'?s=i&class=2.3', 'text'=>getSubclassName(2,3,0)),
53 array('link'=>'?s=i&class=2.4', 'text'=>getSubclassName(2,4,0)),
54 array('link'=>'?s=i&class=2.5', 'text'=>getSubclassName(2,5,0)),
55 array('link'=>'?s=i&class=2.6', 'text'=>getSubclassName(2,6,0)),
56 array('link'=>'?s=i&class=2.7', 'text'=>getSubclassName(2,7,0)),
57 array('link'=>'?s=i&class=2.8', 'text'=>getSubclassName(2,8,0)),
58 array('link'=>'?s=i&class=2.9', 'text'=>getSubclassName(2,9,0)),
59 array('link'=>'?s=i&class=2.10', 'text'=>getSubclassName(2,10,0)),
60 array('link'=>'?s=i&class=2.11', 'text'=>getSubclassName(2,11,0)),
61 array('link'=>'?s=i&class=2.12', 'text'=>getSubclassName(2,12,0)),
62 array('link'=>'?s=i&class=2.13', 'text'=>getSubclassName(2,13,0)),
63 array('link'=>'?s=i&class=2.14', 'text'=>getSubclassName(2,14,0)),
64 array('link'=>'?s=i&class=2.15', 'text'=>getSubclassName(2,15,0)),
65 array('link'=>'?s=i&class=2.16', 'text'=>getSubclassName(2,16,0)),
66 array('link'=>'?s=i&class=2.17', 'text'=>getSubclassName(2,17,0)),
67 array('link'=>'?s=i&class=2.18', 'text'=>getSubclassName(2,18,0)),
68 array('link'=>'?s=i&class=2.19', 'text'=>getSubclassName(2,19,0)),
69 array('link'=>'?s=i&class=2.20', 'text'=>getSubclassName(2,20,0)))
71 array('link'=>'?s=i&class=3',
72 'text'=>getClassName(3,0),
73 'sub'=>array(
74 array('link'=>'?s=i&class=3.0', 'text'=>getSubclassName(3,0,0)),
75 array('link'=>'?s=i&class=3.1', 'text'=>getSubclassName(3,1,0)),
76 array('link'=>'?s=i&class=3.2', 'text'=>getSubclassName(3,2,0)),
77 array('link'=>'?s=i&class=3.3', 'text'=>getSubclassName(3,3,0)),
78 array('link'=>'?s=i&class=3.4', 'text'=>getSubclassName(3,4,0)),
79 array('link'=>'?s=i&class=3.5', 'text'=>getSubclassName(3,5,0)),
80 array('link'=>'?s=i&class=3.6', 'text'=>getSubclassName(3,6,0)),
81 array('link'=>'?s=i&class=3.7', 'text'=>getSubclassName(3,7,0)),
82 array('link'=>'?s=i&class=3.8', 'text'=>getSubclassName(3,8,0)))
84 array('link'=>'?s=i&class=4',
85 'text'=>getClassName(4,0),
86 'sub'=>array(
87 array('link'=>'?s=i&class=4.0', 'text'=>getSubclassName(4,0,0)),
88 array('link'=>'?s=i&class=4.1', 'text'=>getSubclassName(4,1,0)),
89 array('link'=>'?s=i&class=4.2', 'text'=>getSubclassName(4,2,0)),
90 array('link'=>'?s=i&class=4.3', 'text'=>getSubclassName(4,3,0)),
91 array('link'=>'?s=i&class=4.4', 'text'=>getSubclassName(4,4,0)),
92 array('link'=>'?s=i&class=4.5', 'text'=>getSubclassName(4,5,0)),
93 array('link'=>'?s=i&class=4.6', 'text'=>getSubclassName(4,6,0)),
94 array('link'=>'?s=i&class=4.7', 'text'=>getSubclassName(4,7,0)),
95 array('link'=>'?s=i&class=4.8', 'text'=>getSubclassName(4,8,0)),
96 array('link'=>'?s=i&class=4.9', 'text'=>getSubclassName(4,9,0)),
97 array('link'=>'?s=i&class=4.10', 'text'=>getSubclassName(4,10,0)))
99 array('link'=>'?s=i&class=5', 'text'=>getClassName(5,0)),
100 array('link'=>'?s=i&class=6',
101 'text'=>getClassName(6,0),
102 'sub'=>array(
103 array('link'=>'?s=i&class=6.2', 'text'=>getSubclassName(6,2,0)),
104 array('link'=>'?s=i&class=6.3', 'text'=>getSubclassName(6,3,0)))
106 array('link'=>'?s=i&class=7',
107 'text'=>getClassName(7,0),
108 'sub'=>array(
109 array('link'=>'?s=i&class=7.0', 'text'=>getSubclassName(7,0,0)),
110 array('link'=>'?s=i&class=7.1', 'text'=>getSubclassName(7,1,0)),
111 array('link'=>'?s=i&class=7.2', 'text'=>getSubclassName(7,2,0)),
112 array('link'=>'?s=i&class=7.3', 'text'=>getSubclassName(7,3,0)),
113 array('link'=>'?s=i&class=7.4', 'text'=>getSubclassName(7,4,0)),
114 array('link'=>'?s=i&class=7.5', 'text'=>getSubclassName(7,5,0)),
115 array('link'=>'?s=i&class=7.6', 'text'=>getSubclassName(7,6,0)),
116 array('link'=>'?s=i&class=7.7', 'text'=>getSubclassName(7,7,0)),
117 array('link'=>'?s=i&class=7.8', 'text'=>getSubclassName(7,8,0)),
118 array('link'=>'?s=i&class=7.9', 'text'=>getSubclassName(7,9,0)),
119 array('link'=>'?s=i&class=7.10', 'text'=>getSubclassName(7,10,0)),
120 array('link'=>'?s=i&class=7.11', 'text'=>getSubclassName(7,11,0)),
121 array('link'=>'?s=i&class=7.12', 'text'=>getSubclassName(7,12,0)),
122 array('link'=>'?s=i&class=7.13', 'text'=>getSubclassName(7,13,0)),
123 array('link'=>'?s=i&class=7.14', 'text'=>getSubclassName(7,14,0)),
124 array('link'=>'?s=i&class=7.15', 'text'=>getSubclassName(7,15,0)))
126 array('link'=>'?s=i&class=9',
127 'text'=>getClassName(9,0),
128 'sub'=>array(
129 array('link'=>'?s=i&class=9.0', 'text'=>getSubclassName(9,0,0)),
130 array('link'=>'?s=i&class=9.1', 'text'=>getSubclassName(9,1,0)),
131 array('link'=>'?s=i&class=9.2', 'text'=>getSubclassName(9,2,0)),
132 array('link'=>'?s=i&class=9.3', 'text'=>getSubclassName(9,3,0)),
133 array('link'=>'?s=i&class=9.4', 'text'=>getSubclassName(9,4,0)),
134 array('link'=>'?s=i&class=9.5', 'text'=>getSubclassName(9,5,0)),
135 array('link'=>'?s=i&class=9.6', 'text'=>getSubclassName(9,6,0)),
136 array('link'=>'?s=i&class=9.7', 'text'=>getSubclassName(9,7,0)),
137 array('link'=>'?s=i&class=9.8', 'text'=>getSubclassName(9,8,0)),
138 array('link'=>'?s=i&class=9.9', 'text'=>getSubclassName(9,9,0)),
139 array('link'=>'?s=i&class=9.10', 'text'=>getSubclassName(9,10,0)))
141 array('link'=>'?s=i&class=11',
142 'text'=>getClassName(11,0),
143 'sub'=>array(
144 array('link'=>'?s=i&class=11.2', 'text'=>getSubclassName(11,2,0)),
145 array('link'=>'?s=i&class=11.3', 'text'=>getSubclassName(11,3,0)))
147 array('link'=>'?s=i&class=12', 'text'=>getClassName(12,0)),
148 array('link'=>'?s=i&class=13',
149 'text'=>getClassName(13,0),
150 'sub'=>array(
151 array('link'=>'?s=i&class=13.0', 'text'=>getSubclassName(13,0,0)),
152 array('link'=>'?s=i&class=13.1', 'text'=>getSubclassName(13,1,0)))
155 array('link'=>'?s=i&class=15',
156 'text'=>getClassName(15,0),
157 'sub'=>array(
158 array('link'=>'?s=i&class=15.0', 'text'=>getSubclassName(15,0,0)),
159 array('link'=>'?s=i&class=15.1', 'text'=>getSubclassName(15,1,0)),
160 array('link'=>'?s=i&class=15.2', 'text'=>getSubclassName(15,2,0)),
161 array('link'=>'?s=i&class=15.3', 'text'=>getSubclassName(15,3,0)),
162 array('link'=>'?s=i&class=15.4', 'text'=>getSubclassName(15,4,0)),
163 array('link'=>'?s=i&class=15.5', 'text'=>getSubclassName(15,5,0)))
165 array('link'=>'?s=i&class=16',
166 'text'=>getClassName(16,0),
167 'sub'=>array(
168 array('link'=>'?s=i&class=16.1', 'text'=>getSubclassName(16,1,0)),
169 array('link'=>'?s=i&class=16.2', 'text'=>getSubclassName(16,2,0)),
170 array('link'=>'?s=i&class=16.3', 'text'=>getSubclassName(16,3,0)),
171 array('link'=>'?s=i&class=16.4', 'text'=>getSubclassName(16,4,0)),
172 array('link'=>'?s=i&class=16.5', 'text'=>getSubclassName(16,5,0)),
173 array('link'=>'?s=i&class=16.6', 'text'=>getSubclassName(16,6,0)),
174 array('link'=>'?s=i&class=16.7', 'text'=>getSubclassName(16,7,0)),
175 array('link'=>'?s=i&class=16.8', 'text'=>getSubclassName(16,8,0)),
176 array('link'=>'?s=i&class=16.9', 'text'=>getSubclassName(16,9,0)),
177 array('link'=>'?s=i&class=16.11', 'text'=>getSubclassName(16,11,0)))
181 array('link'=>'?s=q', 'text'=>$lang['quest_lookup']),
182 array('link'=>'?s=s', 'text'=>$lang['spell_lookup']),
183 array('link'=>'?s=n',
184 'text'=>$lang['creature_lookup'],
185 'sub'=>array(
186 array(//'link'=>'#'
187 'text'=>$lang['creature_by_type'],
188 'sub'=>array(
189 array('link'=>'?s=n&type=1', 'text'=>getCreatureType(1,0)),
190 array('link'=>'?s=n&type=2', 'text'=>getCreatureType(2,0)),
191 array('link'=>'?s=n&type=3', 'text'=>getCreatureType(3,0)),
192 array('link'=>'?s=n&type=4', 'text'=>getCreatureType(4,0)),
193 array('link'=>'?s=n&type=5', 'text'=>getCreatureType(5,0)),
194 array('link'=>'?s=n&type=6', 'text'=>getCreatureType(6,0)),
195 array('link'=>'?s=n&type=7', 'text'=>getCreatureType(7,0)),
196 array('link'=>'?s=n&type=8', 'text'=>getCreatureType(8,0)),
197 array('link'=>'?s=n&type=9', 'text'=>getCreatureType(9,0)),
198 array('link'=>'?s=n&type=10', 'text'=>getCreatureType(10,0)),
199 array('link'=>'?s=n&type=11', 'text'=>getCreatureType(11,0)),
200 array('link'=>'?s=n&type=12', 'text'=>getCreatureType(12,0)),
201 array('link'=>'?s=n&type=13', 'text'=>getCreatureType(13,0)))
203 array(//'link'=>'#'
204 'text'=>$lang['creature_by_family'],
205 'sub'=>array(
206 array('link'=>'?s=n&family=1', 'text'=> getCreatureFamily(1,0)),
207 array('link'=>'?s=n&family=2', 'text'=> getCreatureFamily(2,0)),
208 array('link'=>'?s=n&family=3', 'text'=> getCreatureFamily(3,0)),
209 array('link'=>'?s=n&family=4', 'text'=> getCreatureFamily(4,0)),
210 array('link'=>'?s=n&family=5', 'text'=> getCreatureFamily(5,0)),
211 array('link'=>'?s=n&family=6', 'text'=> getCreatureFamily(6,0)),
212 array('link'=>'?s=n&family=7', 'text'=> getCreatureFamily(7,0)),
213 array('link'=>'?s=n&family=8', 'text'=> getCreatureFamily(8,0)),
214 array('link'=>'?s=n&family=9', 'text'=> getCreatureFamily(9,0)),
215 // array('link'=>'?s=n&family=10', 'text'=> getCreatureFamily(10,0)),
216 array('link'=>'?s=n&family=11', 'text'=> getCreatureFamily(11,0)),
217 array('link'=>'?s=n&family=12', 'text'=> getCreatureFamily(12,0)),
218 // array('link'=>'?s=n&family=13', 'text'=> getCreatureFamily(13,0)),
219 // array('link'=>'?s=n&family=14', 'text'=> getCreatureFamily(14,0)),
220 array('link'=>'?s=n&family=15', 'text'=> getCreatureFamily(15,0)),
221 array('link'=>'?s=n&family=16', 'text'=> getCreatureFamily(16,0)),
222 array('link'=>'?s=n&family=17', 'text'=> getCreatureFamily(17,0)),
223 // array('link'=>'?s=n&family=18', 'text'=> getCreatureFamily(18,0)),
224 array('link'=>'?s=n&family=19', 'text'=> getCreatureFamily(19,0)),
225 array('link'=>'?s=n&family=20', 'text'=> getCreatureFamily(20,0)),
226 array('link'=>'?s=n&family=21', 'text'=> getCreatureFamily(21,0)),
227 // array('link'=>'?s=n&family=22', 'text'=> getCreatureFamily(22,0)),
228 array('link'=>'?s=n&family=23', 'text'=> getCreatureFamily(23,0)),
229 array('link'=>'?s=n&family=24', 'text'=> getCreatureFamily(24,0)),
230 array('link'=>'?s=n&family=25', 'text'=> getCreatureFamily(25,0)),
231 array('link'=>'?s=n&family=26', 'text'=> getCreatureFamily(26,0)),
232 array('link'=>'?s=n&family=27', 'text'=> getCreatureFamily(27,0)),
233 array('link'=>'?s=n&family=28', 'text'=> getCreatureFamily(28,0)),
234 array('link'=>'?s=n&family=29', 'text'=> getCreatureFamily(29,0)),
235 array('link'=>'?s=n&family=30', 'text'=> getCreatureFamily(30,0)),
236 array('link'=>'?s=n&family=31', 'text'=> getCreatureFamily(31,0)),
237 array('link'=>'?s=n&family=32', 'text'=> getCreatureFamily(32,0)),
238 array('link'=>'?s=n&family=33', 'text'=> getCreatureFamily(33,0)),
239 array('link'=>'?s=n&family=34', 'text'=> getCreatureFamily(34,0)),
240 array('link'=>'?s=n&family=35', 'text'=> getCreatureFamily(35,0)),
241 // array('link'=>'?s=n&family=36', 'text'=> getCreatureFamily(36,0)),
242 array('link'=>'?s=n&family=37', 'text'=> getCreatureFamily(37,0)),
243 array('link'=>'?s=n&family=38', 'text'=> getCreatureFamily(38,0)),
244 array('link'=>'?s=n&family=39', 'text'=> getCreatureFamily(39,0)),
245 array('link'=>'?s=n&family=40', 'text'=> getCreatureFamily(40,0)),
246 array('link'=>'?s=n&family=41', 'text'=> getCreatureFamily(41,0)),
247 array('link'=>'?s=n&family=42', 'text'=> getCreatureFamily(42,0)),
248 array('link'=>'?s=n&family=43', 'text'=> getCreatureFamily(43,0)),
249 array('link'=>'?s=n&family=44', 'text'=> getCreatureFamily(44,0)),
250 array('link'=>'?s=n&family=45', 'text'=> getCreatureFamily(45,0)),
251 array('link'=>'?s=n&family=46', 'text'=> getCreatureFamily(46,0)))
253 array(//'link'=>'#'
254 'text'=>$lang['creature_by_role'],
255 'sub'=>array(
256 array('link'=>'?s=n&flag=0', 'text'=>getCreatureFlagName(0,0)),
257 array('link'=>'?s=n&flag=1', 'text'=>getCreatureFlagName(1,0)),
258 // array('link'=>'?s=n&flag=2', 'text'=>getCreatureFlagName(2,0)),
259 // array('link'=>'?s=n&flag=3', 'text'=>getCreatureFlagName(3,0)),
260 array('link'=>'?s=n&flag=4', 'text'=>getCreatureFlagName(4,0)),
261 array('link'=>'?s=n&flag=5', 'text'=>getCreatureFlagName(5,0)),
262 array('link'=>'?s=n&flag=6', 'text'=>getCreatureFlagName(6,0)),
263 array('link'=>'?s=n&flag=7', 'text'=>getCreatureFlagName(7,0)),
264 array('link'=>'?s=n&flag=8', 'text'=>getCreatureFlagName(8,0)),
265 array('link'=>'?s=n&flag=9', 'text'=>getCreatureFlagName(9,0)),
266 array('link'=>'?s=n&flag=10', 'text'=>getCreatureFlagName(10,0)),
267 array('link'=>'?s=n&flag=11', 'text'=>getCreatureFlagName(11,0)),
268 array('link'=>'?s=n&flag=12', 'text'=>getCreatureFlagName(12,0)),
269 array('link'=>'?s=n&flag=13', 'text'=>getCreatureFlagName(13,0)),
270 array('link'=>'?s=n&flag=14', 'text'=>getCreatureFlagName(14,0)),
271 array('link'=>'?s=n&flag=15', 'text'=>getCreatureFlagName(15,0)),
272 array('link'=>'?s=n&flag=16', 'text'=>getCreatureFlagName(16,0)),
273 array('link'=>'?s=n&flag=17', 'text'=>getCreatureFlagName(17,0)),
274 array('link'=>'?s=n&flag=18', 'text'=>getCreatureFlagName(18,0)),
275 array('link'=>'?s=n&flag=19', 'text'=>getCreatureFlagName(19,0)),
276 array('link'=>'?s=n&flag=20', 'text'=>getCreatureFlagName(20,0)),
277 array('link'=>'?s=n&flag=21', 'text'=>getCreatureFlagName(21,0)),
278 array('link'=>'?s=n&flag=22', 'text'=>getCreatureFlagName(22,0)),
279 array('link'=>'?s=n&flag=23', 'text'=>getCreatureFlagName(23,0)),
280 array('link'=>'?s=n&flag=24', 'text'=>getCreatureFlagName(24,0)),
281 // array('link'=>'?s=n&flag=25', 'text'=>getCreatureFlagName(25,0)),
282 // array('link'=>'?s=n&flag=26', 'text'=>getCreatureFlagName(26,0)),
283 // array('link'=>'?s=n&flag=27', 'text'=>getCreatureFlagName(27,0)),
284 array('link'=>'?s=n&flag=28', 'text'=>getCreatureFlagName(28,0)))
285 // array('link'=>'?s=n&flag=29', 'text'=>getCreatureFlagName(29,0)),
286 // array('link'=>'?s=n&flag=30', 'text'=>getCreatureFlagName(30,0)),
287 // array('link'=>'?s=n&flag=31', 'text'=>getCreatureFlagName(31,0)))
291 array('link'=>'?s=o',
292 'text'=>$lang['object_lookup'],
293 'sub'=>array(
294 // array('link'=>'?s=o&name=&type=0', 'text'=>getGameobjectType(0,0)),
295 // array('link'=>'?s=o&name=&type=1', 'text'=>getGameobjectType(1,0)),
296 array('link'=>'?s=o&name=&type=2', 'text'=>getGameobjectType(2,0)),
297 array('link'=>'?s=o&name=&type=3', 'text'=>getGameobjectType(3,0)),
298 // array('link'=>'?s=o&name=&type=4', 'text'=>getGameobjectType(4,0)),
299 // array('link'=>'?s=o&name=&type=5', 'text'=>getGameobjectType(5,0)),
300 // array('link'=>'?s=o&name=&type=6', 'text'=>getGameobjectType(6,0)),
301 // array('link'=>'?s=o&name=&type=7', 'text'=>getGameobjectType(7,0)),
302 // array('link'=>'?s=o&name=&type=8', 'text'=>getGameobjectType(8,0)),
303 array('link'=>'?s=o&name=&type=9', 'text'=>getGameobjectType(9,0)),
304 // array('link'=>'?s=o&name=&type=10', 'text'=>getGameobjectType(10,0)),
305 // array('link'=>'?s=o&name=&type=11', 'text'=>getGameobjectType(11,0)),
306 // array('link'=>'?s=o&name=&type=12', 'text'=>getGameobjectType(12,0)),
307 // array('link'=>'?s=o&name=&type=13', 'text'=>getGameobjectType(13,0)),
308 // array('link'=>'?s=o&name=&type=14', 'text'=>getGameobjectType(14,0)),
309 // array('link'=>'?s=o&name=&type=15', 'text'=>getGameobjectType(15,0)),
310 // array('link'=>'?s=o&name=&type=16', 'text'=>getGameobjectType(16,0)),
311 // array('link'=>'?s=o&name=&type=17', 'text'=>getGameobjectType(17,0)),
312 // array('link'=>'?s=o&name=&type=18', 'text'=>getGameobjectType(18,0)),
313 // array('link'=>'?s=o&name=&type=19', 'text'=>getGameobjectType(19,0)),
314 // array('link'=>'?s=o&name=&type=20', 'text'=>getGameobjectType(20,0)),
315 // array('link'=>'?s=o&name=&type=21', 'text'=>getGameobjectType(21,0)),
316 // array('link'=>'?s=o&name=&type=22', 'text'=>getGameobjectType(22,0)),
317 // array('link'=>'?s=o&name=&type=23', 'text'=>getGameobjectType(23,0)),
318 // array('link'=>'?s=o&name=&type=24', 'text'=>getGameobjectType(24,0)),
319 array('link'=>'?s=o&name=&type=25', 'text'=>getGameobjectType(25,0)))
320 // array('link'=>'?s=o&name=&type=26', 'text'=>getGameobjectType(26,0)),
321 // array('link'=>'?s=o&name=&type=27', 'text'=>getGameobjectType(27,0)),
322 // array('link'=>'?s=o&name=&type=28', 'text'=>getGameobjectType(28,0)),
323 // array('link'=>'?s=o&name=&type=29', 'text'=>getGameobjectType(29,0)),
324 // array('link'=>'?s=o&name=&type=30', 'text'=>getGameobjectType(30,0)),
325 // array('link'=>'?s=o&name=&type=31', 'text'=>getGameobjectType(31,0)),
326 // array('link'=>'?s=o&name=&type=32', 'text'=>getGameobjectType(32,0)),
327 // array('link'=>'?s=o&name=&type=33', 'text'=>getGameobjectType(33,0)),
328 // array('link'=>'?s=o&name=&type=34', 'text'=>getGameobjectType(34,0)))
330 array('link'=>'?s=f', 'text'=>$lang['faction_lookup']),
331 array('link'=>'?s=a', 'text'=>$lang['area_lookup']),
332 array('link'=>'?s=set', 'text'=>$lang['item_set']),
333 array('link'=>'?s=p', 'text'=>$lang['player_lookup']),
334 array('link'=>'', 'text'=>$lang['achievement'],
335 'sub'=>array(
336 array('link'=>'?achievement&faction=1', 'text'=>$lang['Alliance']),
337 array('link'=>'?achievement&faction=0', 'text'=>$lang['Horde']))
339 array('link'=>'?auction',
340 'text'=>$lang['auction'],
341 'sub'=>array(
342 array('link'=>'?auction=Alliance', 'text'=>$lang['Alliance']),
343 array('link'=>'?auction=Horde', 'text'=>$lang['Horde']),
344 array('link'=>'?auction=Blackwater','text'=>$lang['Blackwater']))
346 array('link'=>'?guild', 'text'=>$lang['guild']),
347 array('link'=>'?location',
348 'text'=>$lang['zone'],
349 'sub'=>array(
350 array('link'=>'?location=a14', 'text'=>getAreaNameFromId(14)),
351 array('link'=>'?location=a13', 'text'=>getAreaNameFromId(13)),
352 array('link'=>'?location=a466', 'text'=>getAreaNameFromId(466)),
353 array('link'=>'?location=a485', 'text'=>getAreaNameFromId(485)))
355 array('link'=>'?instance', 'text'=>$lang['instance']),
356 array('link'=>'?talent',
357 'text'=>$lang['talent_calc'],
358 'sub'=>array(
359 array('link'=>'?talent=warrior', 'text'=>getClass(1)),
360 array('link'=>'?talent=paladin', 'text'=>getClass(2)),
361 array('link'=>'?talent=hunter', 'text'=>getClass(3)),
362 array('link'=>'?talent=rogue', 'text'=>getClass(4)),
363 array('link'=>'?talent=priest', 'text'=>getClass(5)),
364 array('link'=>'?talent=death_knight','text'=>getClass(6)),
365 array('link'=>'?talent=shaman', 'text'=>getClass(7)),
366 array('link'=>'?talent=mage', 'text'=>getClass(8)),
367 array('link'=>'?talent=warlock', 'text'=>getClass(9)),
368 array('link'=>'?talent=druid', 'text'=>getClass(11)))
372 array(
373 'ico'=>'icon-community',
374 'name'=>$lang['top_lookup'],
375 'show'=>false,
376 'sub'=>array(
377 array('link'=>'?top=money', 'text'=>$lang['top_money']),
378 array('link'=>'?top=honor', 'text'=>$lang['top_honor']),
379 array('link'=>'?top=arena2', 'text'=>$lang['top_arena2']),
380 array('link'=>'?top=arena3', 'text'=>$lang['top_arena3']),
381 array('link'=>'?top=arena5', 'text'=>$lang['top_arena5']),
384 array(
385 'ico'=>'icon-interactive',
386 'name'=>$lang['skills_main'],
387 'show'=>false,
388 'sub'=>array(
389 array('text'=>$lang['prof_primary'],
390 'sub'=>array(
391 array('link'=>'?skill=Alchemy', 'text'=>$lang['prof_alchemy']),
392 array('link'=>'?skill=Blacksmithing', 'text'=>$lang['prof_blacksmith']),
393 array('link'=>'?skill=Enchanting', 'text'=>$lang['prof_enchant']),
394 array('link'=>'?skill=Engineering', 'text'=>$lang['prof_engineer']),
395 array('link'=>'?skill=Herbalism', 'text'=>$lang['prof_herbalism']),
396 array('link'=>'?skill=Jewelcrafting', 'text'=>$lang['prof_jevelcraft']),
397 array('link'=>'?skill=Leatherworking','text'=>$lang['prof_leathwork']),
398 array('link'=>'?skill=Mining', 'text'=>$lang['prof_mining']),
399 array('link'=>'?skill=Skinning', 'text'=>$lang['prof_skinning']),
400 array('link'=>'?skill=Tailoring', 'text'=>$lang['prof_taloring']),
401 array('link'=>'?skill=Inscription', 'text'=>$lang['prof_inscription']))),
402 array('text'=>$lang['prof_secondary'],
403 'sub'=>array(
404 array('link'=>'?skill=Cooking', 'text'=>$lang['prof_cooking']),
405 array('link'=>'?skill=First Aid', 'text'=>$lang['prof_first_aid']),
406 array('link'=>'?skill=Fishing', 'text'=>$lang['prof_fishing']))),
408 array('text'=>$lang['class skills'],
409 'sub'=>array(
410 array('text'=>getClass(1),
411 'sub'=>array(
412 array('link'=>'?skill=26', 'text'=>getSkillName(26,0)),
413 array('link'=>'?skill=256', 'text'=>getSkillName(256,0)),
414 array('link'=>'?skill=257', 'text'=>getSkillName(257,0))
417 array('text'=>getClass(2),
418 'sub'=>array(
419 array('link'=>'?skill=267', 'text'=>getSkillName(267,0)),
420 array('link'=>'?skill=184', 'text'=>getSkillName(184,0)),
421 array('link'=>'?skill=594', 'text'=>getSkillName(594,0))
424 array('text'=>getClass(3),
425 'sub'=>array(
426 array('link'=>'?skill=50', 'text'=>getSkillName(50,0)),
427 array('link'=>'?skill=51', 'text'=>getSkillName(51,0)),
428 array('link'=>'?skill=163', 'text'=>getSkillName(163,0)),
429 array('link'=>'?skill=261', 'text'=>getSkillName(261,0))
432 array('text'=>getClass(4),
433 'sub'=>array(
434 array('link'=>'?skill=253', 'text'=>getSkillName(253,0)),
435 array('link'=>'?skill=38', 'text'=>getSkillName(38,0)),
436 array('link'=>'?skill=39', 'text'=>getSkillName(39,0)),
437 array('link'=>'?skill=40', 'text'=>getSkillName(40,0)),
438 array('link'=>'?skill=633', 'text'=>getSkillName(633,0))
441 array('text'=>getClass(5),
442 'sub'=>array(
443 array('link'=>'?skill=56', 'text'=>getSkillName(56,0)),
444 array('link'=>'?skill=78', 'text'=>getSkillName(78,0)),
445 array('link'=>'?skill=613', 'text'=>getSkillName(613,0))
448 array('text'=>getClass(6),
449 'sub'=>array(
450 array('link'=>'?skill=770', 'text'=>getSkillName(770,0)),
451 array('link'=>'?skill=771', 'text'=>getSkillName(771,0)),
452 array('link'=>'?skill=772', 'text'=>getSkillName(772,0))
455 array('text'=>getClass(7),
456 'sub'=>array(
457 array('link'=>'?skill=373', 'text'=>getSkillName(373,0)),
458 array('link'=>'?skill=375', 'text'=>getSkillName(375,0)),
459 array('link'=>'?skill=374', 'text'=>getSkillName(374,0))
462 array('text'=>getClass(8),
463 'sub'=>array(
464 array('link'=>'?skill=237', 'text'=>getSkillName(237,0)),
465 array('link'=>'?skill=6', 'text'=>getSkillName(6,0)),
466 array('link'=>'?skill=8', 'text'=>getSkillName(8,0))
469 array('text'=>getClass(9),
470 'sub'=>array(
471 array('link'=>'?skill=355', 'text'=>getSkillName(355,0)),
472 array('link'=>'?skill=354', 'text'=>getSkillName(354,0)),
473 array('link'=>'?skill=593', 'text'=>getSkillName(593,0))
476 array('text'=>getClass(11),
477 'sub'=>array(
478 array('link'=>'?skill=134', 'text'=>getSkillName(134,0)),
479 array('link'=>'?skill=573', 'text'=>getSkillName(573,0)),
480 array('link'=>'?skill=574', 'text'=>getSkillName(574,0))
485 array(
486 'ico'=>'icon-gameguide',
487 'name'=>$lang['menu_faq'],
488 'show'=>false,
489 'sub'=>array(
490 array('link'=>'?faq=list', 'text'=>$lang['faq_list']),
491 array('link'=>'?faq=classes',
492 'text'=>$lang['faq_classes'],
493 'sub'=>array(
494 array('link'=>'?faq=class-warrior', 'text'=>getClass(1)),
495 array('link'=>'?faq=class-paladin', 'text'=>getClass(2)),
496 array('link'=>'?faq=class-hunter', 'text'=>getClass(3)),
497 array('link'=>'?faq=class-rogue', 'text'=>getClass(4)),
498 array('link'=>'?faq=class-priest', 'text'=>getClass(5)),
499 array('link'=>'?faq=class-death_knight','text'=>getClass(6)),
500 array('link'=>'?faq=class-shaman', 'text'=>getClass(7)),
501 array('link'=>'?faq=class-mage', 'text'=>getClass(8)),
502 array('link'=>'?faq=class-warlock', 'text'=>getClass(9)),
503 array('link'=>'?faq=class-druid', 'text'=>getClass(11)))
505 array('text'=>$lang['faq_races'],
506 'sub'=>array(
507 array('link'=>'?faq=race-humans', 'text'=>getRace(1)),
508 array('link'=>'?faq=race-orcs', 'text'=>getRace(2)),
509 array('link'=>'?faq=race-dwarves', 'text'=>getRace(3)),
510 array('link'=>'?faq=race-night_elves','text'=>getRace(4)),
511 array('link'=>'?faq=race-undeads', 'text'=>getRace(5)),
512 array('link'=>'?faq=race-taurens', 'text'=>getRace(6)),
513 array('link'=>'?faq=race-gnomes', 'text'=>getRace(7)),
514 array('link'=>'?faq=race-trolls', 'text'=>getRace(8)),
515 array('link'=>'?faq=race-blood_elves','text'=>getRace(10)),
516 array('link'=>'?faq=race-draenei', 'text'=>getRace(11)))
518 array('link'=>'?faq=professions',
519 'text'=>$lang['faq_professions'],
520 'sub'=>array(
521 array( 'text'=>$lang['prof_primary']),
522 array('link'=>'?faq=prof-alchemy', 'text'=>$lang['prof_alchemy']),
523 array('link'=>'?faq=prof-blacksmithing', 'text'=>$lang['prof_blacksmith']),
524 array('link'=>'?faq=prof-enchanting', 'text'=>$lang['prof_enchant']),
525 array('link'=>'?faq=prof-engineering', 'text'=>$lang['prof_engineer']),
526 array('link'=>'?faq=prof-herbalism', 'text'=>$lang['prof_herbalism']),
527 array('link'=>'?faq=prof-jewelcrafting', 'text'=>$lang['prof_jevelcraft']),
528 array('link'=>'?faq=prof-leatherworking','text'=>$lang['prof_leathwork']),
529 array('link'=>'?faq=prof-mining', 'text'=>$lang['prof_mining']),
530 array('link'=>'?faq=prof-skinning', 'text'=>$lang['prof_skinning']),
531 array('link'=>'?faq=prof-tailoring', 'text'=>$lang['prof_taloring']),
532 array( 'text'=>$lang['prof_secondary']),
533 array('link'=>'?faq=prof-cooking', 'text'=>$lang['prof_cooking']),
534 array('link'=>'?faq=prof-first_aid', 'text'=>$lang['prof_first_aid']),
535 array('link'=>'?faq=prof-fishing', 'text'=>$lang['prof_fishing']))
537 array('link'=>'?faq=slang', 'text'=>$lang['faq_slang']),
538 array('link'=>'?faq=step1', 'text'=>$lang['step_1']),
539 array('link'=>'?faq=aggro', 'text'=>$lang['about_aggro']),
540 array('link'=>'?faq=city', 'text'=>$lang['about_city']),
541 array('link'=>'?faq=guild', 'text'=>$lang['about_guild']),
542 array('link'=>'?faq=socket', 'text'=>$lang['about_socket']),
543 array('link'=>'?faq=macro', 'text'=>$lang['about_macro']),
544 array('link'=>'?faq=raidhill', 'text'=>$lang['about_raid_hill'])
547 array(
548 'ico'=>'icon-account',
549 'name'=>$lang['menu_5'],
550 'show'=>false,
551 'sub'=>array(
552 array('link'=>'?register', 'text'=>$lang['register']),
553 array('link'=>'?open_search', 'text'=>$lang['open_search'])
556 array(
557 'ico'=>'icon-support',
558 'name'=>$lang['menu_6'],
559 'show'=>false,
560 'sub'=>array(
561 array('link'=>'?stat', 'text'=>$lang['statistic']),
562 array('link'=>'map/index.html', 'text'=>$lang['cartograph'], 'target'=>'_blank')