Локализация и другое.)
[cswow.git] / site_menu.php
blob72afc8d21bf85359f6254691dcae613a7c0dcb08
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', 'text'=>$lang['object_lookup']),
292 array('link'=>'?s=f', 'text'=>$lang['faction_lookup']),
293 array('link'=>'?s=a', 'text'=>$lang['area_lookup']),
294 array('link'=>'?s=set', 'text'=>$lang['item_set']),
295 array('link'=>'?s=p', 'text'=>$lang['player_lookup']),
296 array('link'=>'', 'text'=>$lang['achievement'],
297 'sub'=>array(
298 array('link'=>'?achievement&faction=1', 'text'=>$lang['Alliance']),
299 array('link'=>'?achievement&faction=0', 'text'=>$lang['Horde']))
301 array('link'=>'?auction',
302 'text'=>$lang['auction'],
303 'sub'=>array(
304 array('link'=>'?auction=Alliance', 'text'=>$lang['Alliance']),
305 array('link'=>'?auction=Horde', 'text'=>$lang['Horde']),
306 array('link'=>'?auction=Blackwater','text'=>$lang['Blackwater']))
308 array('link'=>'?guild', 'text'=>$lang['guild']),
309 array('link'=>'?location',
310 'text'=>$lang['zone'],
311 'sub'=>array(
312 array('link'=>'?location=a14', 'text'=>getAreaNameFromId(14)),
313 array('link'=>'?location=a13', 'text'=>getAreaNameFromId(13)),
314 array('link'=>'?location=a466', 'text'=>getAreaNameFromId(466)),
315 array('link'=>'?location=a485', 'text'=>getAreaNameFromId(485)))
317 array('link'=>'?instance', 'text'=>$lang['instance']),
318 array('link'=>'?talent',
319 'text'=>$lang['talent_calc'],
320 'sub'=>array(
321 array('link'=>'?talent=warrior', 'text'=>getClass(1)),
322 array('link'=>'?talent=paladin', 'text'=>getClass(2)),
323 array('link'=>'?talent=hunter', 'text'=>getClass(3)),
324 array('link'=>'?talent=rogue', 'text'=>getClass(4)),
325 array('link'=>'?talent=priest', 'text'=>getClass(5)),
326 array('link'=>'?talent=death_knight','text'=>getClass(6)),
327 array('link'=>'?talent=shaman', 'text'=>getClass(7)),
328 array('link'=>'?talent=mage', 'text'=>getClass(8)),
329 array('link'=>'?talent=warlock', 'text'=>getClass(9)),
330 array('link'=>'?talent=druid', 'text'=>getClass(11)))
334 array(
335 'ico'=>'icon-community',
336 'name'=>$lang['top_lookup'],
337 'show'=>false,
338 'sub'=>array(
339 array('link'=>'?top=money', 'text'=>$lang['top_money']),
340 array('link'=>'?top=honor', 'text'=>$lang['top_honor']),
341 array('link'=>'?top=arena2', 'text'=>$lang['top_arena2']),
342 array('link'=>'?top=arena3', 'text'=>$lang['top_arena3']),
343 array('link'=>'?top=arena5', 'text'=>$lang['top_arena5']),
346 array(
347 'ico'=>'icon-interactive',
348 'name'=>$lang['skills_main'],
349 'show'=>false,
350 'sub'=>array(
351 array('text'=>$lang['prof_primary'],
352 'sub'=>array(
353 array('link'=>'?skill=Alchemy', 'text'=>$lang['prof_alchemy']),
354 array('link'=>'?skill=Blacksmithing', 'text'=>$lang['prof_blacksmith']),
355 array('link'=>'?skill=Enchanting', 'text'=>$lang['prof_enchant']),
356 array('link'=>'?skill=Engineering', 'text'=>$lang['prof_engineer']),
357 array('link'=>'?skill=Herbalism', 'text'=>$lang['prof_herbalism']),
358 array('link'=>'?skill=Jewelcrafting', 'text'=>$lang['prof_jevelcraft']),
359 array('link'=>'?skill=Leatherworking','text'=>$lang['prof_leathwork']),
360 array('link'=>'?skill=Mining', 'text'=>$lang['prof_mining']),
361 array('link'=>'?skill=Skinning', 'text'=>$lang['prof_skinning']),
362 array('link'=>'?skill=Tailoring', 'text'=>$lang['prof_taloring']),
363 array('link'=>'?skill=Inscription', 'text'=>$lang['prof_inscription']))),
364 array('text'=>$lang['prof_secondary'],
365 'sub'=>array(
366 array('link'=>'?skill=Cooking', 'text'=>$lang['prof_cooking']),
367 array('link'=>'?skill=First Aid', 'text'=>$lang['prof_first_aid']),
368 array('link'=>'?skill=Fishing', 'text'=>$lang['prof_fishing']))),
370 array('text'=>$lang['class skills'],
371 'sub'=>array(
372 array('text'=>getClass(1),
373 'sub'=>array(
374 array('link'=>'?skill=26', 'text'=>getSkillName(26,0)),
375 array('link'=>'?skill=256', 'text'=>getSkillName(256,0)),
376 array('link'=>'?skill=257', 'text'=>getSkillName(257,0))
379 array('text'=>getClass(2),
380 'sub'=>array(
381 array('link'=>'?skill=267', 'text'=>getSkillName(267,0)),
382 array('link'=>'?skill=184', 'text'=>getSkillName(184,0)),
383 array('link'=>'?skill=594', 'text'=>getSkillName(594,0))
386 array('text'=>getClass(3),
387 'sub'=>array(
388 array('link'=>'?skill=50', 'text'=>getSkillName(50,0)),
389 array('link'=>'?skill=51', 'text'=>getSkillName(51,0)),
390 array('link'=>'?skill=163', 'text'=>getSkillName(163,0)),
391 array('link'=>'?skill=261', 'text'=>getSkillName(261,0))
394 array('text'=>getClass(4),
395 'sub'=>array(
396 array('link'=>'?skill=253', 'text'=>getSkillName(253,0)),
397 array('link'=>'?skill=38', 'text'=>getSkillName(38,0)),
398 array('link'=>'?skill=39', 'text'=>getSkillName(39,0)),
399 array('link'=>'?skill=40', 'text'=>getSkillName(40,0)),
400 array('link'=>'?skill=633', 'text'=>getSkillName(633,0))
403 array('text'=>getClass(5),
404 'sub'=>array(
405 array('link'=>'?skill=56', 'text'=>getSkillName(56,0)),
406 array('link'=>'?skill=78', 'text'=>getSkillName(78,0)),
407 array('link'=>'?skill=613', 'text'=>getSkillName(613,0))
410 array('text'=>getClass(6),
411 'sub'=>array(
412 array('link'=>'?skill=770', 'text'=>getSkillName(770,0)),
413 array('link'=>'?skill=771', 'text'=>getSkillName(771,0)),
414 array('link'=>'?skill=772', 'text'=>getSkillName(772,0))
417 array('text'=>getClass(7),
418 'sub'=>array(
419 array('link'=>'?skill=373', 'text'=>getSkillName(373,0)),
420 array('link'=>'?skill=375', 'text'=>getSkillName(375,0)),
421 array('link'=>'?skill=374', 'text'=>getSkillName(374,0))
424 array('text'=>getClass(8),
425 'sub'=>array(
426 array('link'=>'?skill=237', 'text'=>getSkillName(237,0)),
427 array('link'=>'?skill=6', 'text'=>getSkillName(6,0)),
428 array('link'=>'?skill=8', 'text'=>getSkillName(8,0))
431 array('text'=>getClass(9),
432 'sub'=>array(
433 array('link'=>'?skill=355', 'text'=>getSkillName(355,0)),
434 array('link'=>'?skill=354', 'text'=>getSkillName(354,0)),
435 array('link'=>'?skill=593', 'text'=>getSkillName(593,0))
438 array('text'=>getClass(11),
439 'sub'=>array(
440 array('link'=>'?skill=134', 'text'=>getSkillName(134,0)),
441 array('link'=>'?skill=573', 'text'=>getSkillName(573,0)),
442 array('link'=>'?skill=574', 'text'=>getSkillName(574,0))
447 array(
448 'ico'=>'icon-gameguide',
449 'name'=>$lang['menu_faq'],
450 'show'=>false,
451 'sub'=>array(
452 array('link'=>'?faq=list', 'text'=>$lang['faq_list']),
453 array('link'=>'?faq=classes',
454 'text'=>$lang['faq_classes'],
455 'sub'=>array(
456 array('link'=>'?faq=class-warrior', 'text'=>getClass(1)),
457 array('link'=>'?faq=class-paladin', 'text'=>getClass(2)),
458 array('link'=>'?faq=class-hunter', 'text'=>getClass(3)),
459 array('link'=>'?faq=class-rogue', 'text'=>getClass(4)),
460 array('link'=>'?faq=class-priest', 'text'=>getClass(5)),
461 array('link'=>'?faq=class-death_knight','text'=>getClass(6)),
462 array('link'=>'?faq=class-shaman', 'text'=>getClass(7)),
463 array('link'=>'?faq=class-mage', 'text'=>getClass(8)),
464 array('link'=>'?faq=class-warlock', 'text'=>getClass(9)),
465 array('link'=>'?faq=class-druid', 'text'=>getClass(11)))
467 array('text'=>$lang['faq_races'],
468 'sub'=>array(
469 array('link'=>'?faq=race-humans', 'text'=>getRace(1)),
470 array('link'=>'?faq=race-orcs', 'text'=>getRace(2)),
471 array('link'=>'?faq=race-dwarves', 'text'=>getRace(3)),
472 array('link'=>'?faq=race-night_elves','text'=>getRace(4)),
473 array('link'=>'?faq=race-undeads', 'text'=>getRace(5)),
474 array('link'=>'?faq=race-taurens', 'text'=>getRace(6)),
475 array('link'=>'?faq=race-gnomes', 'text'=>getRace(7)),
476 array('link'=>'?faq=race-trolls', 'text'=>getRace(8)),
477 array('link'=>'?faq=race-blood_elves','text'=>getRace(10)),
478 array('link'=>'?faq=race-draenei', 'text'=>getRace(11)))
480 array('link'=>'?faq=professions',
481 'text'=>$lang['faq_professions'],
482 'sub'=>array(
483 array( 'text'=>$lang['prof_primary']),
484 array('link'=>'?faq=prof-alchemy', 'text'=>$lang['prof_alchemy']),
485 array('link'=>'?faq=prof-blacksmithing', 'text'=>$lang['prof_blacksmith']),
486 array('link'=>'?faq=prof-enchanting', 'text'=>$lang['prof_enchant']),
487 array('link'=>'?faq=prof-engineering', 'text'=>$lang['prof_engineer']),
488 array('link'=>'?faq=prof-herbalism', 'text'=>$lang['prof_herbalism']),
489 array('link'=>'?faq=prof-jewelcrafting', 'text'=>$lang['prof_jevelcraft']),
490 array('link'=>'?faq=prof-leatherworking','text'=>$lang['prof_leathwork']),
491 array('link'=>'?faq=prof-mining', 'text'=>$lang['prof_mining']),
492 array('link'=>'?faq=prof-skinning', 'text'=>$lang['prof_skinning']),
493 array('link'=>'?faq=prof-tailoring', 'text'=>$lang['prof_taloring']),
494 array( 'text'=>$lang['prof_secondary']),
495 array('link'=>'?faq=prof-cooking', 'text'=>$lang['prof_cooking']),
496 array('link'=>'?faq=prof-first_aid', 'text'=>$lang['prof_first_aid']),
497 array('link'=>'?faq=prof-fishing', 'text'=>$lang['prof_fishing']))
499 array('link'=>'?faq=slang', 'text'=>$lang['faq_slang']),
500 array('link'=>'?faq=step1', 'text'=>$lang['step_1']),
501 array('link'=>'?faq=aggro', 'text'=>$lang['about_aggro']),
502 array('link'=>'?faq=city', 'text'=>$lang['about_city']),
503 array('link'=>'?faq=guild', 'text'=>$lang['about_guild']),
504 array('link'=>'?faq=socket', 'text'=>$lang['about_socket']),
505 array('link'=>'?faq=macro', 'text'=>$lang['about_macro']),
506 array('link'=>'?faq=raidhill', 'text'=>$lang['about_raid_hill'])
509 array(
510 'ico'=>'icon-account',
511 'name'=>$lang['menu_5'],
512 'show'=>false,
513 'sub'=>array(
514 array('link'=>'?register', 'text'=>$lang['register']),
515 array('link'=>'?open_search', 'text'=>$lang['open_search'])
518 array(
519 'ico'=>'icon-support',
520 'name'=>$lang['menu_6'],
521 'show'=>false,
522 'sub'=>array(
523 array('link'=>'?stat', 'text'=>$lang['statistic']),
524 array('link'=>'map/index.html', 'text'=>$lang['cartograph'], 'target'=>'_blank')