root/dev/mods/rank_mod/settings_defines.php @ 491

Revision 370, 12.1 KB (checked in by kovell, 11 years ago)

- SQL queries optimised for speed and error protection.
- feed syndication optimised
- front page includes optional clock and optional kill/loss display
- mysqli support added
- transaction protection of kills added where supported (mysqli and InnoDB)
- summary tables and contracts show total destroyed value instead of ship value
- html errors reduced
- related kill calculation improved
- query caching errors reduced
- minor bugfixes
- Smarty 2.6.25 added
- apoc fitting mod added and modded
- code optimisations
- code comments added (doxygen format)
- conflicting mods are now identified

Line 
1<?php
2$medals_array = array(
3"Top Killer",           // 0
4"Top Scorer",           // 1
5"Top Solo Killer",      // 2
6"Top Damagedealer",     // 3
7"Top Final Blows",      // 4
8"Top Pod Killer",       // 5
9"Top Griefer",          // 6
10"Top ISK Killer",       // 7
11"Top Loser"             // 8
12);
13
14$weapon_ribbons_array = array(
15"Hybrid Turret",
16"Laser Turret",
17"Projectile Turret",
18"Missile Launcher",
19"Electronic Warfare",
20"Drone Operation"
21);
22
23$itnavy=array(
24"Sottocapo di 3za Classe" , "Sc3." ,
25"Sottocapo di 2da Classe" , "Sc2." ,
26"Sottocapo di 1ma Classe" , "Sc1." ,
27"Sergente" , "Ser." ,
28"Secondo Capo" , "Scc." ,
29"Capo di 3za Classe" , "Cp3." ,
30"Capo di 2da Classe" , "Cp2." ,
31"Capo di 1ma Classe" , "Cp1." ,
32"Primo Maresciallo" , "Pma." ,
33"Primo Maresciallo luogotenente", "Pml." ,
34
35"Aspirante Guardiamarina" , "Asp." ,
36"Guardiamarina" , "Gdm." ,
37"Sottotenente di Vascello" , "SdV." ,
38"Tenente di Vascello" , "TdV." ,
39"Capitano di Corvetta" , "CdC." ,
40"Capitano di Fregata" , "CdF." ,
41"Capitano di Vascello" , "CdV." ,
42"Contrammiraglio" , "Cta." ,
43"Ammiraglio di Divisione" , "AdD." ,
44"Ammiraglio di Squadra" , "AdS." ,
45"Ammiraglio", "Amm."
46);
47
48$navy=array(
49"Seaman Recruit" , "SR." ,
50"Seaman Apprentice" , "SA." ,
51"Seaman" , "SN." ,
52"Petty Officer Thrird Class" , "PO3." ,
53"Petty Officer Second Class" , "PO2." ,
54"Petty Officer First Class" , "PO1." ,
55"Chief Petty Officer" , "CPO." ,
56"Senior Chief Petty Officer" , "SCPO." ,
57"Master Chief Petty Officer" , "MCPO." ,
58"Fleet Master Chief Petty Officer", "FMCPO." ,
59
60"Ensign" , "Ens." ,
61"Lieutenant, Junior Grade" , "LtJG." ,
62"Lieutenant" , "Lt." ,
63"Lieutenant Commander" , "LCdr." ,
64"Commander" , "Cdr." ,
65"Captain" , "Capt." ,
66"Rear Admiral LH" , "Rdml." ,
67"Rear Admiral UH" , "RAdm." ,
68"Vice Admiral" , "VAdm." ,
69"Admiral" , "Adm." ,
70"Fleet Admiral", "FAdm."
71);
72
73$army=array(
74"Private" , "Pvt." ,
75"Private Second Class" , "Pv2." ,
76"Private First Class" , "PFC." ,
77"Corporal" , "Cpl." ,
78"Sergeant" , "Sgt." ,
79"Staff Sergeant" , "SSg." ,
80"Sergeant First Class" , "SFC." ,
81"Master Sergeant" , "MSg." ,
82"Sergeant Major" , "SgM." ,
83"Sergeant Major of the Army", "SMA." ,
84
85"Second Lieutenant" , "2Lt." ,
86"First Lieutenant" , "1Lt." ,
87"Captain" , "Cpt." ,
88"Major" , "Maj." ,
89"Lieutenant Colonel" , "LtC." ,
90"Colonel" , "Col." ,
91"Brigadier General" , "BG." ,
92"Major General" , "MG." ,
93"Lieutenant General" , "LtG." ,
94"General" , "Gen." ,
95"General of the Army" , "GA."
96);
97
98$airf=array(
99"Airman Basic" , "AB." ,
100"Airman" , "Amn." ,
101"Airman First Class" , "A1C." ,
102"Senior Airman" , "SrA." ,
103"Staff Sergeant" , "SSgt." ,
104"Technical Sergeant" , "TSgt." ,
105"Master Sergeant" , "MSgt." ,
106"Senior Master Sergeant" , "SMSgt." ,
107"Chief Master Sergeant" , "CMSgt." ,
108"Chief Master Sergeant of the Air Force", "CMSAF." ,
109
110"Second Lieutenant" , "2d Lt." ,
111"First Lieutenant" , "1st Lt." ,
112"Captain" , "Capt." ,
113"Major" , "Maj." ,
114"Lieutenant Colonel" , "Lt Col." ,
115"Colonel" , "Col." ,
116"Brigadier General" , "Brig Gen." ,
117"Major General" , "Maj Gen." ,
118"Lieutenant General" , "Lt Gen." ,
119"General" , "Gen." ,
120"General of the Air Force", "Gen AF."
121);
122
123$strek=array(
124"Recruit" , "Rct." ,
125"Crewman 3rd Class" , "CM3." ,
126"Crewman 2nd Class" , "CM2." ,
127"Crewman 1st Class" , "CM1." ,
128"Petty Officer 3rd Class" , "PO3." ,
129"Petty Officer 2nd Class" , "PO2." ,
130"Petty Officer 1st Class" , "PO1." ,
131"Chief Petty Officer" , "CPO." ,
132"Senior Chief Petty Officer" , "SCPO." ,
133"Master Chief Petty Officer" , "MCPO." ,
134
135"Ensign" , "Ens." ,
136"Lieutenant Junior Grade" , "LtJG." ,
137"Lieutenant" , "Lt." ,
138"Lieutenant Commander" , "LCdr." ,
139"Commander" , "Cdr." ,
140"Captain" , "Capt." ,
141"Commodore" , "Comm." ,
142"Rear Admiral" , "RAdm." ,
143"Vice Admiral" , "VAdm." ,
144"Admiral" , "Adm." ,
145"Fleet Admiral" , "FAdm."
146);
147
148$strek2=array(
149"Recruit" , "Rct." ,
150"Crewman 3rd Class" , "CM3." ,
151"Crewman 2nd Class" , "CM2." ,
152"Crewman 1st Class" , "CM1." ,
153"Petty Officer 3rd Class" , "PO3." ,
154"Petty Officer 2nd Class" , "PO2." ,
155"Petty Officer 1st Class" , "PO1." ,
156"Chief Petty Officer" , "CPO." ,
157"Senior Chief Petty Officer" , "SCPO." ,
158"Master Chief Petty Officer" , "MCPO." ,
159
160"Ensign." , "Ens." ,
161"Lieutenant junior grade" , "Ltjg." ,
162"Lieutenant" , "Lt." ,
163"Lieutenant Commander" , "LtC." ,
164"Commander" , "Cdr." ,
165"Captain" , "Capt." ,
166"Rear Admiral lower half" , "Rdml." ,
167"Rear Admiral" , "RAdm." ,
168"Vice Admiral" , "VAdm." ,
169"Admiral" , "Adm." ,
170"Fleet Admiral" , "FAdm."
171);
172
173$esfn=array(
174"Recruit" , "Rct." ,
175"Crewman 3rd Class" , "CM3." ,
176"Crewman 2nd Class" , "CM2." ,
177"Crewman 1st Class" , "CM1." ,
178"Petty Officer 3rd Class" , "PO3." ,
179"Petty Officer 2nd Class" , "PO2." ,
180"Petty Officer 1st Class" , "PO1." ,
181"Chief Petty Officer" , "CPO." ,
182"Senior Chief Petty Officer" , "SCPO." ,
183"Master Chief Petty Officer" , "MCPO." ,
184
185"Cadet 2nd Class" , "Cd2." ,
186"Cadet 1st Class" , "Cd1." ,
187"Ensign" , "Ens." ,
188"Lieutenant" , "Lt." ,
189"Commander" , "Cdr." ,
190"Captain" , "Capt." ,
191"Commodore" , "Comm." ,
192"Rear Admiral" , "RAdm." ,
193"Vice Admiral" , "VAdm." ,
194"Admiral" , "Adm." ,
195"Fleet Admiral" , "FAdm."
196);
197
198$bsgn=array(
199"Recruit" , "Rct." ,
200"Deckhand" , "Dkh." ,
201"Crewman" , "Cmn." ,
202"Crewman Specialist" , "CmS." ,
203"Petty Officer 3rd Class" , "PO3." ,
204"Petty Officer 2nd Class" , "PO2." ,
205"Petty Officer 1st Class" , "PO1." ,
206"Chief Petty Officer" , "CPO." ,
207"Senior Chief Petty Officer" , "SCPO." ,
208"Master Chief Petty Officer" , "MCPO." ,
209
210"Cadet" , "Cdt." ,
211"Ensign" , "Ens." ,
212"Lieutenant Junior Grade" , "LtJG." ,
213"Lieutenant" , "Lt." ,
214"Captain" , "Capt." ,
215"Major" , "Maj." ,
216"Colonel" , "Col." ,
217"Commander", "Cdr." ,
218"Rear Admiral" , "RAdm." ,
219"Vice Admiral" , "VAdm." ,
220"Admiral" , "Adm."
221);
222
223$wbsgn=array(
224"Cadet" , "Cdt." ,
225"Junior Ensign" , "Ens. Jr." ,
226"Senior Ensign" , "Ens. Sr." ,
227"Junior Lieutenant Jg" , "LtJG. Jr." ,
228"Senior Lieutenant Jg" , "LtJg. Sr." ,
229"Junior Lieutenant" , "Lt. Jr." ,
230"Senior Lieutenant" , "Lt. Sr." ,
231"Junior Captain" , "Capt. Jr." ,
232"Senior Captain" , "Capt. Sr." ,
233"Junior Major" , "Maj. Jr" ,
234
235"Senior Major" , "Maj. Sr." ,
236"Junior Colonel" , "Col. Jr." ,
237"Senior Colonel" , "Col. Sr." ,
238"Junior Commander" , "Cdr. Jr." ,
239"Senior Commander" , "Cdr. Sr." ,
240"Junior Rear Admiral" , "RAdm. Jr." ,
241"Senior Rear Admiral" , "RAdm. Sr." ,
242"Junior Vice Admiral", "VAdm. Jr." ,
243"Senior Vice Admiral" ,"VAdm. Sr." ,
244"Junior Admiral" , "Adm. Jr." ,
245"Senior Admiral" , "Adm. Sr."
246);
247
248$swin=array(
249"Recruit" , "Rct." ,
250"Crewman 3rd Class" , "CM3." ,
251"Crewman 2nd Class" , "CM2." ,
252"Crewman 1st Class" , "CM1." ,
253"Petty Officer 3rd Class" , "PO3." ,
254"Petty Officer 2nd Class" , "PO2." ,
255"Petty Officer 1st Class" , "PO1." ,
256"Chief Petty Officer" , "CPO." ,
257"Senior Chief Petty Officer" , "SCPO." ,
258"Master Chief Petty Officer" , "MCPO." ,
259
260"Ensign" , "Ens." ,
261"Sublieutenant" , "Slt." ,
262"Lieutenant" , "Lt." ,
263"Lieutenant Commander" , "LtC." ,
264"Commander" , "Cdr." ,
265"Captain" , "Capt." ,
266"Captain of the Line" , "CptL." ,
267"Commodore" , "Comm." ,
268"Rear Admiral" , "RAdm." ,
269"Vice Admiral" , "VAdm." ,
270"Admiral" , "Adm."
271);
272
273$itsf=array(
274"Recluta" , "Rec." ,
275"Comune 3za Classe" , "Cm3." ,
276"Comune 2da Classe" , "Cm2." ,
277"Comune 1ma Classe" , "Cm1." ,
278"Sottocapo 3za Classe" , "Sc3." ,
279"Sottocapo 2da Classe" , "Sc2." ,
280"Sottocapo 1ma Classe" , "Sc1." ,
281"Maresciallo" , "Mrc." ,
282"Primo Maresciallo" , "PMr." ,
283"Primo Maresciallo luogotenente" , "PMC." ,
284
285"Guardiamarina" , "Grd." ,
286"Sottotenente" , "Stt." ,
287"Tenente" , "Ten." ,
288"Tenente Comandante" , "TnC." ,
289"Comandante" , "Cmn." ,
290"Capitano" , "Cap." ,
291"Commodoro" , "Comm." ,
292"Contrammiraglio" , "Cont." ,
293"Vice Ammiraglio" , "VAmm." ,
294"Ammiraglio" , "Amm." ,
295"Ammiraglio Supremo" , "Supr."
296);
297
298$swis=array(
299"Starman Basic" , "SmB." ,
300"Starman" , "Stm." ,
301"Starman First Class" , "SFC." ,
302"Senior Starman" , "SSm.",
303"Sergeant" , "Sgt." ,
304"Staff Sergeant" , "SSgt." ,
305"First Sergeant" , "FSgt." ,
306"Chief First Segeant" , "CFSgt." ,
307"Senior First Sergeant" , "SFSgt." ,
308"Master First Sergeant" , "MFSgt." ,
309
310"Flight Cadet" , "FCdt." ,
311"Pilot Officer" , "POff." ,
312"Flying Officer" , "FOff." ,
313"Flight Lieutenant" , "FLt." ,
314"Squadron Leader" , "SLdr." ,
315"Wing Commander" , "WCdr." ,
316"Group Captain" , "GCpt." ,
317"Flight Commodore" , "FComm." ,
318"Vice Marshall" , "VMar." ,
319"Marshall" , "Mar." ,
320"Chief Marshall" , "CMar."
321);
322
323$swrn=array(
324"Recruit" , "Rct." ,
325"Crewman 3rd Class" , "CM3." ,
326"Crewman 2nd Class" , "CM2." ,
327"Crewman 1st Class" , "CM1." ,
328"Petty Officer 3rd Class" , "PO3." ,
329"Petty Officer 2nd Class" , "PO2." ,
330"Petty Officer 1st Class" , "PO1." ,
331"Chief Petty Officer" , "CPO." ,
332"Senior Chief Petty Officer" , "SCPO." ,
333"Master Chief Petty Officer" , "MCPO." ,
334
335"Midshipman" , "Mids." ,
336"Ensign" , "Ens." ,
337"Sub-Lieutenant" , "Slt." ,
338"Lieutenant" , "Lt." ,
339"Lieutenant Commander" , "LtC." ,
340"Commander" , "Cdr." ,
341"Captain" , "Capt." ,
342"Commodore" , "Comm." ,
343"Rear Admiral" , "RAdm." ,
344"Vice Admiral" , "Vadm." ,
345"Admiral" , "Adm."
346);
347
348$tfsf=array(
349"Recruit" , "Rct." ,
350"Deckhand" , "Dkh." ,
351"Crewman" , "Cmn." ,
352"Crewman Specialist" , "CmS." ,
353"Petty Officer 3rd Class" , "PO3." ,
354"Petty Officer 2nd Class" , "PO2." ,
355"Petty Officer 1st Class" , "PO1." ,
356"Chief Petty Officer" , "CPO." ,
357"Senior Chief Petty Officer" , "SCPO." ,
358"Master Chief Petty Officer" , "MCPO." ,
359
360"Ensign" , "Ens." ,
361"Sublieutenant" , "2lt." ,
362"Lieutenant" , "Lt." ,
363"Lieutenant Commander" , "LtC." ,
364"Commander" , "Cdr." ,
365"Captain" , "Capt." ,
366"Commodore" , "Comm." ,
367"Rear Admiral" , "RAdm." ,
368"Vice Admiral" , "VAdm." ,
369"Admiral" , "Adm.",
370"Starfleet Admiral" , "SAdm."
371);
372
373
374$s_rank_type=array("Enlisted" ,
375"Officer" ,
376"Enlisted + Officer" );
377
378$s_rank_specs=array(
379'U.S. Air Force' => array( 'title' => 'airf', 'enlisted' => 'airf_en', 'officer' => 'US_of'),
380'U.S. Army' => array( 'title' => 'army', 'enlisted' => 'army_en', 'officer' => 'US_of'),
381'U.S. Navy' => array( 'title' => 'navy', 'enlisted' => 'navy_en', 'officer' => 'US_of'),
382'Italian Navy' => array( 'title' => 'itnavy', 'enlisted' => 'itnavy_en', 'officer' => 'itnavy_of'),
383'Italian Starfleet' => array( 'title' => 'itsf', 'enlisted' => 'itsf_en', 'officer' => 'itsf_of'),
384'Battlestar Galactica' => array( 'title' => 'bsgn', 'enlisted' => 'bsgn_en', 'officer' => 'bsgn_of'),
385'Winged Battlestar Galactica' => array( 'title' => 'wbsgn', 'enlisted' => 'wbsgn_en', 'officer' => 'wbsgn_of'),
386'Star Trek: Original Series' => array( 'title' => 'strek', 'enlisted' => 'strek_en', 'officer' => 'strek_of'),
387'Star Trek: Next Generation' => array( 'title' => 'strek2', 'enlisted' => 'strek2_en', 'officer' => 'strek2_of'),
388'Star Trek: Enterprise' => array( 'title' => 'esfn', 'enlisted' => 'esfn_en', 'officer' => 'esfn_of'),
389'Star Wars: Imperial Navy'  => array( 'title' => 'swin', 'enlisted' => 'swin_en', 'officer' => 'swin_of'),
390'Star Wars: Imperial Starfighters'  => array( 'title' => 'swis', 'enlisted' => 'swis_en', 'officer' => 'swis_of'),
391'Star Wars: Rebel Alliance'  => array( 'title' => 'swrn', 'enlisted' => 'swrn_en', 'officer' => 'swrn_of'),
392'Terran Federation Starfleet'  => array( 'title' => 'tfsf', 'enlisted' => 'tfsf_en', 'officer' => 'tfsf_of')
393);
394
395$s_rank_imageset=array(
396"U.S. Air Force" ,
397"U.S. Army" ,
398"U.S. Navy", 
399"Italian Navy",
400// "Italian Starfleet",
401"Battlestar Galactica",
402// "Winged Battlestar Galactica",
403"Star Trek: Original Series",
404"Star Trek: Next Generation",
405"Star Trek: Enterprise",
406"Star Wars: Imperial Navy",
407// "Star Wars: Imperial Starfighters",
408"Star Wars: Rebel Alliance"//,
409//"Terran Federation Starfleet"
410);
411
412$s_rank_titleset=array(
413"U.S. Air Force" ,
414"U.S. Army" ,
415"U.S. Navy",
416"Italian Navy",
417//"Italian Starfleet",
418"Battlestar Galactica",
419// "Winged Battlestar Galactica",
420"Star Trek: Original Series",
421"Star Trek: Next Generation",
422"Star Trek: Enterprise",
423"Star Wars: Imperial Navy",
424//"Star Wars: Imperial Starfighters",
425"Star Wars: Rebel Alliance"//,
426//"Terran Federation Starfleet"
427);
428
429$s_e_factor=array(1 ,
4301.1 ,
4311.2 ,
4321.3 ,
4331.4 ,
4341.5 ,
4351.7 ,
4362 ,
4372.5 );
438
439$kb_year=array(
4402003,
4412004,
4422005,
4432006,
4442007,
4452008,
4462009,
4472010
448);
449
450$kb_month=array(
4511,
4522,
4533,
4544,
4555,
4566,
4577,
4588,
4599,
46010,
46111,
46212
463);
464?>
Note: See TracBrowser for help on using the browser.