Требование: PHP => 5.3, часть 2
[cswowd.git] / module / faq / show_faq.php
blob946fc5d21afa65f9066e8f231e9f57d670f64153
1 <?php
2 $faq = @$_REQUEST['faq'];
4 $faq_list = array(
5 'list'=>'list.html',
6 'step1'=>'step1.html',
7 'socket'=>'socket.html',
8 'guild'=>'guild.html',
9 'aggro'=>'aggro.html',
10 'macro'=>'macro.html',
11 'raidhill'=>'raidhill.html',
12 //'rules'=>'rules.html',
13 'slang'=>'slang.html',
14 //'levelchart'=>'levelchart.html',
16 // class faq
17 'classes'=>'classfaq/classes.html',
18 'class-druid'=>'classfaq/class-druid.html',
19 'class-hunter'=>'classfaq/class-hunter.html',
20 'class-mage'=>'classfaq/class-mage.html',
21 'class-paladin'=>'classfaq/class-paladin.html',
22 'class-priest'=>'classfaq/class-priest.html',
23 'class-rogue'=>'classfaq/class-rogue.html',
24 'class-shaman'=>'classfaq/class-shaman.html',
25 'class-warlock'=>'classfaq/class-warlock.html',
26 'class-warrior'=>'classfaq/class-warrior.html',
27 'class-death_knight'=>'classfaq/class-death_knight.html',
29 // Proffesions faq & guide
30 'professions'=>'proffaq/professions.html',
31 'guide-alchemy'=>'proffaq/guide-alchemy.html',
32 'guide-blacksmithing'=>'proffaq/guide-blacksmithing.html',
33 'guide-cooking'=>'proffaq/guide-cooking.html',
34 'guide-enchanting'=>'proffaq/guide-enchanting.html',
35 'guide-engineering'=>'proffaq/guide-engineering.html',
36 'guide-first_aid'=>'proffaq/guide-first_aid.html',
37 'guide-fishing'=>'proffaq/guide-fishing.html',
38 'guide-herbalism'=>'proffaq/guide-herbalism.html',
39 'guide-jewelcrafting'=>'proffaq/guide-jewelcrafting.html',
40 'guide-leatherworking'=>'proffaq/guide-leatherworking.html',
41 'guide-mining'=>'proffaq/guide-mining.html',
42 'guide-skinning'=>'proffaq/guide-skinning.html',
43 'guide-tailoring'=>'proffaq/guide-tailoring.html',
44 'prof-alchemy'=>'proffaq/prof-alchemy.html',
45 'prof-blacksmithing'=>'proffaq/prof-blacksmithing.html',
46 'prof-cooking'=>'proffaq/prof-cooking.html',
47 'prof-enchanting'=>'proffaq/prof-enchanting.html',
48 'prof-engineering'=>'proffaq/prof-engineering.html',
49 'prof-first_aid'=>'proffaq/prof-first_aid.html',
50 'prof-fishing'=>'proffaq/prof-fishing.html',
51 'prof-herbalism'=>'proffaq/prof-herbalism.html',
52 'prof-jewelcrafting'=>'proffaq/prof-jewelcrafting.html',
53 'prof-leatherworking'=>'proffaq/prof-leatherworking.html',
54 'prof-mining'=>'proffaq/prof-mining.html',
55 'prof-skinning'=>'proffaq/prof-skinning.html',
56 'prof-tailoring'=>'proffaq/prof-tailoring.html',
57 'prof-inscription'=>'proffaq/prof-inscription.html',
59 // Race faq
60 'race-humans'=>'racefaq/race-humans.html',
61 'race-night_elves'=>'racefaq/race-night_elves.html',
62 'race-dwarves'=>'racefaq/race-dwarves.html',
63 'race-gnomes'=>'racefaq/race-gnomes.html',
64 'race-orcs'=>'racefaq/race-orcs.html',
65 'race-taurens'=>'racefaq/race-taurens.html',
66 'race-undeads'=>'racefaq/race-undeads.html',
67 'race-trolls'=>'racefaq/race-trolls.html',
68 'race-draenei'=>'racefaq/race-draenei.html',
69 'race-blood_elves'=>'racefaq/race-blood_elves.html',
71 // Race info
72 'blood_elves'=>'raceinfo/blood_elves.html',
73 'high_elves'=>'raceinfo/high_elves.html',
74 'high_elves_and_blood_elves'=>'raceinfo/high_elves_and_blood_elves.html',
75 'night_elves'=>'raceinfo/night_elves.html',
77 // Leaders
78 'aedelas_blackmoore'=>'raceinfo/aedelas_blackmoore.html',
79 'aegwyn'=>'raceinfo/aegwyn.html',
80 'alleria_windrunner'=>'raceinfo/alleria_windrunner.html',
81 'anasterian_sunstrider'=>'raceinfo/anasterian_sunstrider.html',
82 'anduin_lothar'=>'raceinfo/anduin_lothar.html',
83 'antonidas'=>'raceinfo/antonidas.html',
84 'arthas_menethil'=>'raceinfo/arthas_menethil.html',
85 'blackhand'=>'raceinfo/blackhand.html',
86 'cairne_bloodhoof'=>'raceinfo/cairne_bloodhoof.html',
87 'daelin_proudmoore'=>'raceinfo/daelin_proudmoore.html',
88 'dathremar_sunstrider'=>'raceinfo/dathremar_sunstrider.html',
89 'dejahna'=>'raceinfo/dejahna.html',
90 'desdel_stareye'=>'raceinfo/desdel_stareye.html',
91 'durotan'=>'raceinfo/durotan.html',
92 'fandral_staghelm'=>'raceinfo/fandral_staghelm.html',
93 'grom_hellscream'=>'raceinfo/grom_hellscream.html',
94 'guldan'=>'raceinfo/guldan.html',
95 'jaina_proudmoore'=>'raceinfo/jaina_proudmoore.html',
96 'jarod_shadowsong'=>'raceinfo/jarod_shadowsong.html',
97 'kaelthas_sunstrider'=>'raceinfo/kaelthas_sunstrider.html',
98 'kelthuzad'=>'raceinfo/kelthuzad.html',
99 'khadgar'=>'raceinfo/khadgar.html',
100 'kilrogg_deadeye'=>'raceinfo/kilrogg_deadeye.html',
101 'kurtalos_ravencrest'=>'raceinfo/kurtalos_ravencrest.html',
102 'latosius'=>'raceinfo/latosius.html',
103 'maiev_shadowsong'=>'raceinfo/maiev_shadowsong.html',
104 'tyrande_whisperwind'=>'raceinfo/tyrande_whisperwind.html',
105 'medivh'=>'raceinfo/medivh.html',
106 'muradin_bronzebeard'=>'raceinfo/muradin_bronzebeard.html',
107 'naga'=>'raceinfo/naga.html',
108 'nekros_skullcrusher'=>'raceinfo/nekros_skullcrusher.html',
109 'nerzhul'=>'raceinfo/nerzhul.html',
110 'nielas_aran'=>'raceinfo/nielas_aran.html',
111 'orgrim_doomhammer'=>'raceinfo/orgrim_doomhammer.html',
112 'rhonin'=>'raceinfo/rhonin.html',
113 'terenas_menethil'=>'raceinfo/terenas_menethil.html',
114 'thral'=>'raceinfo/thral.html',
115 'turalyon'=>'raceinfo/turalyon.html',
116 'malfurion_stormrage'=>'raceinfo/malfurion_stormrage.html',
117 'uther'=>'raceinfo/uther.html',
118 'valstann_staghelm'=>'raceinfo/valstann_staghelm.html',
119 'vashj'=>'raceinfo/vashj.html',
120 'vereesa_windrunner'=>'raceinfo/vereesa_windrunner.html',
122 // Immortals
123 'azshara'=>'immortals/azshara.html',
124 'cenarius'=>'immortals/cenarius.html',
125 'demigods'=>'immortals/demigods.html',
126 'elune'=>'immortals/elune.html',
127 'gods'=>'immortals/gods.html',
128 'immortals'=>'immortals/immortals.html',
129 'malorne'=>'immortals/malorne.html',
131 // Demon faq
132 'demon-info'=>'demons/demon-info.html',
133 'demon-archimonde'=>'demons/demon-archimonde.html',
134 'demon-kiljaeden'=>'demons/demon-kiljaeden.html',
135 'demon-mannoroth'=>'demons/demon-mannoroth.html',
136 'demon-sargeras'=>'demons/demon-sargeras.html',
137 'demon-satyrs'=>'demons/demon-satyrs.html',
138 'demon-xavius'=>'demons/demon-xavius.html',
139 'demon-illidan_stormrage'=>'demons/demon-illidan_stormrage.html',
141 // Faction faq
142 'faction-alliance'=>'faction/faction-alliance.html',
143 'faction-horde'=>'faction/faction-horde.html',
144 'faction-sentinels'=>'faction/faction-sentinels.html',
145 'faction-sisterhood_of_elune'=>'faction/faction-sisterhood_of_elune.html',
146 'faction-highborne'=>'faction/faction-highborne.html',
147 'faction-burning_legion'=>'faction/faction-burning_legion.html',
148 'faction-scourge'=>'faction/faction-scourge.html',
149 'faction-scarlet_crusade'=>'faction/faction-scarlet_crusade.html',
150 'faction-cenarion_circle'=>'faction/faction-cenarion_circle.html',
151 'faction-moon_guard'=>'faction/faction-moon_guard.html',
152 'faction-farstriders'=>'faction/faction-farstriders.html',
153 'faction-watchers'=>'faction/faction-watchers.html',
155 // Wow world
156 'azeroth'=>'world/azeroth.html',
157 'mythos'=>'world/chapter_1_mythos.html',
158 'last_keeper'=>'world/chapter_2_last_keeper.html',
159 'born_of_horde'=>'world/chapter_3_birth_horde.html',
160 'dark_portal'=>'world/chapter_4_dark_portal.html',
161 'old_enemy'=>'world/chapter_5_old_enemies.html',
162 'new_era'=>'world/chapter_6_new_era.html',
163 'emerald_dream'=>'world/emerald_dream.html',
164 'first_war_chronicles'=>'world/first_war_chronicles.html',
165 'history_and_legends'=>'world/history_and_legends.html',
166 'twisting_nether'=>'world/twisting_nether.html',
167 'warcraft_universe'=>'world/warcraft_universe.html',
169 // Wow transport
170 'transport'=>'transport/transport.html',
171 'flight_paths'=>'transport/flight_paths.html',
172 'mounts'=>'transport/mounts.html',
174 // Zone faq
175 'city'=>'zones/city.html',
176 'zone-stranglethorn_vale'=>'zones/zone-stranglethorn_vale.html',
177 'zone-westfall'=>'zones/zone-westfall.html',
178 'zone-dun_morogh'=>'zones/zone-dun_morogh.html',
179 'zone-duskwood'=>'zones/zone-duskwood.html',
180 'zone-elwynn_forest'=>'zones/zone-elwynn_forest.html',
181 'zone-teldrassil'=>'zones/zone-teldrassil.html',
183 // Instance faq
184 'inst-hellfire_citadel'=>'inst/inst-hellfire_citadel.html',
185 'inst-caverns_of_time'=>'inst/inst-caverns_of_time.html',
186 'inst-karazhan'=>'inst/inst-karazhan.html',
187 'inst-wailing_caverns'=>'inst/inst-wailing_caverns.html',
189 // Burning crusade
190 'bc-outland'=>'bc/bc-outland.html',
191 'bc-beasts'=>'bc/bc-beasts.html',
192 'bc-history'=>'bc/bc-history.html',
195 $text = @$faq_list[$faq];
196 echo "<div class=faq>";
197 if (!empty($text))
198 include($text);
199 else
200 echo "Error";
201 echo "</div>";