This repository was archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathapp.config.php
652 lines (560 loc) · 20.4 KB
/
app.config.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<?php
/**
* phpVMS - Virtual Airline Administration Software
* Copyright (c) 2008 Nabeel Shahzad
* For more information, visit www.phpvms.net
* Forums: http://www.phpvms.net/forum
* Documentation: http://www.phpvms.net/docs
*
* phpVMS is licenced under the following license:
* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
* View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/
*
* @author Nabeel Shahzad
* @copyright Copyright (c) 2008, Nabeel Shahzad
* @link http://www.phpvms.net
* @license http://creativecommons.org/licenses/by-nc-sa/3.0/
*/
/**
* DO NOT MODIFY THESE SETTINGS HERE!!
* They will get over-ridden in an update. These are just defaults
* To change, copy-paste and change the line/option/setting into your
* local.config.php file
*
* Most of these are in your local.config.php already
*
* View the docs for details about these settings
*/
define('IN_PHPVMS', true);
# Debug mode is off by default
Config::Set('DEBUG_MODE', false);
Config::Set('DEBUG_LEVEL', 1); // 1 logs query errors, 2 logs all queries
Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);
# Page encoding options
Config::Set('PAGE_ENCODING', 'UTF-8');
Config::Set('DB_CHARSET_NAME', 'utf8');
# Maintenance mode - this disables the site to non-admins
Config::Set('MAINTENANCE_MODE', false);
Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');
# This is your airline's twitter account, if it exists
Config::Set('TWITTER_AIRLINE_ACCOUNT', '');
Config::Set('TWITTER_ENABLE_PUSH', false);
Config::Set('TWITTER_CONSUMER_KEY', '');
Config::Set('TWITTER_CONSUMER_SECRET', '');
Config::Set('TWITTER_OAUTH_TOKEN', '');
Config::Set('TWITTER_OAUTH_SECRET', '');
# See more details about these in the docs
Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP
Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from
Config::Set('PILOTID_LENGTH', 4); # Length of the Pilot ID
Config::Set('UNITS', 'nm'); # Your units: nm, mi or km
Config::Set('LOAD_FACTOR', '82'); # %age load factor
Config::Set('CARGO_UNITS', 'lbs');
Config::Set('DEFAULT_MAX_CARGO_LOAD', 10000);
Config::Set('DEFAULT_MAX_PAX_LOAD', 250);
# Number of routes to show in the route map
Config::Set('ROUTE_MAP_SHOW_NUMBER', 25);
# After how long to mark a pilot inactive, in days
Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 90);
# Automatically confirm pilots?
Config::Set('PILOT_AUTO_CONFIRM', false);
# Automatically calculate ranks?
Config::Set('RANKS_AUTOCALCULATE', true);
# Schedules - ignore the day of week active?
Config::Set('CHECK_SCHEDULE_DAY_OF_WEEK', true);
# Schedules - only show schedules from the last filed PIREP
Config::Set('SCHEDULES_ONLY_LAST_PIREP', false);
# For how many hours a pilot can edit their submitted PIREP (custom fields only)
Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');
# The time to wait to be allowed to submit identical PIREPS
Config::Set('PIREP_CHECK_DUPLICATE', true);
Config::Set('PIREP_TIME_CHECK', '1'); # Minutes, to wait in between duplicate submits
# Whether to ignore any user-inputted load, and always calculate it
Config::Set('PIREP_OVERRIDE_LOAD', false);
/* What to order schedules by. Use s.[column_name] [ASC/DESC],
with the column name being from the schedules table */
Config::Set('SCHEDULES_ORDER_BY', 's.flightnum ASC');
/* For PIREPS_ORDER_BY use p.[column_name] [ASC/DESC] */
Config::Set('PIREPS_ORDER_BY', 'p.submitdate DESC');
# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', false);
# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', false);
Config::Set('BID_EXPIRE_TIME', '48'); # How many hours to hold bids for
# If you want to count transfer hours in rank calculations
Config::Set('TRANSFER_HOURS_IN_RANKS', false);
# Pilot pilots to only fly aircraft they're ranked to
Config::Set('RESTRICT_AIRCRAFT_RANKS', true);
# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 20);
# Google Map Options
Config::Set('MAP_WIDTH', '800px');
Config::Set('MAP_HEIGHT', '600px');
Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');
Config::Set('MAP_LINE_COLOR', '#ff0000');
Config::Set('MAP_CENTER_LAT', '45.484400');
Config::Set('MAP_CENTER_LNG', '-62.334821');
Config::Set('MAP_ZOOM_LEVEL', 12);
# ACARS options
# Minutes, flights to show on the ACARS
# Default is 720 minutes (12 hours)
Config::Set('ACARS_LIVE_TIME', 720);
Config::Set('ACARS_DEBUG', false);
/*
This is the unit of money. For non-dollars, use :
Dollars ($), enter "$"
Euro (�), enter "€"
Yen (�), enter "¥"
Pounds (�), enter "£"
For example, to set EUROS:
Config::Set('MONEY_UNIT', '€');
*/
Config::Set('MONEY_UNIT', '$');
/*
To change the money format, look at:
http://us3.php.net/money_format
However, I do not recommend changing this
*/
Config::Set('MONEY_FORMAT', '%(#10n');
# Fuel info
/* Default fuel price, for airports that don't have
And the surcharge percentage. View the docs
for more details about these
*/
Config::Set('FUEL_GET_LIVE_PRICE', true);
Config::Set('FUEL_DEFAULT_PRICE', '5.10');
Config::Set('FUEL_SURCHARGE', '5');
# Units settings
# These are global, also used for FSPAX
Config::Set('WeightUnit', '1'); # 0=Kg 1=lbs
Config::Set('DistanceUnit', '2'); # 0=KM 1= Miles 2=NMiles
Config::Set('SpeedUnit', '1'); # 0=Km/H 1=Kts
Config::Set('AltUnit', '1'); # 0=Meter 1=Feet
Config::Set('LiquidUnit', '3'); # 0=liter 1=gal 2=kg 3=lbs
Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message
Config::Set('LIQUID_UNIT_NAMES', array('liter','gal','kg', 'lbs'));
/* FSFK Settings
Your FTP Server, and path to the lib/images folder (from where the FTP connects from), IE
ftp://phpvms.net/phpvms/lib/fsfk or ftp://phpvms.net/public_html/phpvms/lib/fsfk
You want the path from when you connect to the FTP down to where the /lib/fsfk folder is
SECURITY NOTE! Make a separate FTP user and password ONLY for this, with access only to this folder
*/
Config::Set('FSFK_FTP_SERVER', '');
Config::Set('FSFK_FTP_PORT', '21');
Config::Set('FSFK_FTP_USER', '');
Config::Set('FSFK_FTP_PASS', '');
Config::Set('FSFK_FTP_PASSIVE_MODE', 'TRUE');
Config::Set('FSFK_IMAGE_PATH', '/lib/fsfk'); // web path from SITE_ROOT
# Options for the signature that's generated
Config::Set('SIGNATURE_TEXT_COLOR', '#000');
Config::Set('SIGNATURE_USE_CUSTOM_FONT', true);
Config::Set('SIGNATURE_FONT_PATH', SITE_ROOT.'/lib/fonts/tahoma.ttf');
Config::Set('SIGNATURE_FONT_SIZE', '10');
Config::Set('SIGNATURE_X_OFFSET', '10');
Config::Set('SIGNATURE_Y_OFFSET', '17');
Config::Set('SIGNATURE_FONT_PADDING', 4);
Config::Set('SIGNATURE_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);
# Avatar information
Config::Set('AVATAR_FILE_SIZE', 50000); # Maximum file-size they can upload
Config::Set('AVATAR_MAX_WIDTH', 80); # Resized width
Config::Set('AVATAR_MAX_HEIGHT', 80); # Resized height
# Cookie information
Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds
Config::Set('SESSION_GUEST_EXPIRE', '30'); # Clear guest sessions 30 minutes
//Config::Set('SESSION_COOKIE_NAME', 'VMS_AUTH_COOKIE');
# Email Settings
Config::Set('EMAIL_FROM_NAME', '');
Config::Set('EMAIL_FROM_ADDRESS', '');
Config::Set('EMAIL_USE_SMTP', false);
# Add multiple SMTP servers by separating them with ;
Config::Set('EMAIL_SMTP_SERVERS', '');
Config::Set('EMAIL_SMTP_PORT', '25');
Config::Set('EMAIL_SMTP_USE_AUTH', false);
Config::Set('EMAIL_SMTP_SECURE', ''); # must be "ssl" for Google Apps
Config::Set('EMAIL_SMTP_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');
# Set specific email addresses to send notifications to
Config::Set('EMAIL_NEW_REGISTRATIONS', '');
Config::Set('EMAIL_NEW_PIREP', '');
# Whether to send an email or not
Config::Set('EMAIL_SEND_PIREP', true);
# This is email to specifically send email sent error to, such
# as failure notices with an invalid email or something
# If blank, it'll default to the "from" email that's specified
Config::Set('EMAIL_RETURN_PATH', '');
/* Can be 'geonames' or 'phpvms'.
Geonames will use the geonames.org server to look up the airport info
phpvms will use the phpVMS API server
*/
Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms');
Config::Set('PHPVMS_API_SERVER', 'http://api.phpvms.net');
Config::Set('PHPVMS_NEWS_FEED', 'http://feeds.feedburner.com/phpvms');
Config::Set('VACENTRAL_NEWS_FEED', 'http://feeds.feedburner.com/vacentral');
Config::Set('GEONAME_API_SERVER', 'http://ws.geonames.org');
/* Keys for recaptcha, you can change these if you want to your own but it's
a global key so it should just work */
Config::Set('RECAPTCHA_PUBLIC_KEY', '6LcklAsAAAAAAJqmghmMPOACeJrAxW3sJulSboxx');
Config::Set('RECAPTCHA_PRIVATE_KEY', '6LcklAsAAAAAAMeQy5ZBoDu8JOMTP-UL7ek1GedO');
/* Whether you have the /admin/maintenance.php script added into cron.
If you do, set this to true. This saves many DB calls since phpVMS will
have to 'fake' a cron-job
*/
Config::Set('USE_CRON', false);
Config::Set('CHECK_RELEASE_VERSION', true);
Config::Set('CHECK_BETA_VERSION', false);
Config::Set('URL_REWRITE', false);
/* Days of the Week
The compacted view, and the full text
*/
Config::Set('DAYS_COMPACT', array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su'));
Config::Set('DAYS_LONG',
array('Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday'
)
);
Config::Set('SITE_LANGUAGE', 'en');
Config::Set('ADMIN_SKIN', 'layout');
/**
* *******************************************************
*
*
*
*
*
*
* Advanced options, don't edit unless you
* know what you're doing!!
*
* Actually, don't change them, at all. Please.
* For your sake. And mine. :)
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
$revision = trim(file_get_contents(CORE_PATH.'/version'));
define('PHPVMS_VERSION', $revision);
Config::Set('TEMPLATE_USE_CACHE', false);
Config::Set('TEMPLATE_CACHE_EXPIRE', '24');
Config::Set('DBASE_USE_CACHE', false);
Config::Set('CACHE_PATH', SITE_ROOT . '/core/cache');
Config::Set('TPL_EXTENSION', '.tpl');
Config::Set('BASE_TEMPLATE_PATH', SITE_ROOT.'/core/templates');
if(defined('ADMIN_PANEL') && ADMIN_PANEL === true) {
Template::SetTemplatePath(SITE_ROOT.'/admin/templates');
define('CODON_MODULES_PATH', SITE_ROOT.'/admin/modules');
define('CODON_DEFAULT_MODULE', 'Dashboard');
} else {
Template::SetTemplatePath(Config::Get('BASE_TEMPLATE_PATH'));
define('CODON_MODULES_PATH', SITE_ROOT.'/core/modules');
define('CODON_DEFAULT_MODULE', 'Frontpage');
}
/* Cache settings */
$cache_settings = array(
'active' => false,
'engine' => 'file', /* "file" or "apc" */
'location' => CACHE_PATH, /* For the "file" engine type */
'prefix' => 'phpvms_', /* Specify a prefix for any entries */
'profiles' => array(
'default' => array(
'duration' => '+10 minutes',
),
'short' => array(
'duration' => '+3 minutes',
),
'15minute' => array(
'duration' => '+15 minutes',
),
'medium' => array(
'duration' => '+1 hour',
),
'medium_well' => array(
'duration' => '+3 hour',
),
'long' => array(
'duration' => '+6 hours'
),
)
);
Config::Set('CACHE_KEY_LIST', array(
'all_airline_active',
'all_airlines',
'start_date',
'months_since_start',
'years_since_start',
'stats_aircraft_usage',
'all_settings',
'total_flights',
'top_routes',
'users_online',
'guests_online',
'pilot_count',
'total_pax_carried',
'flights_today',
'fuel_burned',
'miles_flown',
'aircraft_in_fleet',
'total_news_items',
'total_schedules',
'all_groups',
'all_ranks',
)
);
Config::Set('TABLE_LIST', array(
'acarsdata',
'adminlog',
'aircraft',
'airlines',
'airports',
'awards',
'awardsgranted',
'bids',
'customfields',
'downloads',
'expenselog',
'expenses',
'fieldvalues',
'financedata',
'fuelprices',
'groupmembers',
'groups',
'navdata',
'news',
'pages',
'pilots',
'pirepcomments',
'pirepfields',
'pireps',
'pirepvalues',
'ranks',
'schedules',
'sessions',
'settings',
'updates'
)
);
/* VACentral */
Config::Set('VACENTRAL_ENABLED', false);
Config::Set('VACENTRAL_DEBUG_MODE', false);
Config::Set('VACENTRAL_DEBUG_DETAIL', 0);
Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
Config::Set('VACENTRAL_API_KEY', '');
Config::Set('VACENTRAL_DATA_FORMAT', 'json');
/**
* Constants
* Do not modify these! All sorts of weird shit can happen
*/
# Set the type of flights we have
Config::Set(
'FLIGHT_TYPES', array(
'P'=>'Passenger',
'C'=>'Cargo',
'H'=>'Charter'
)
);
# Set the types of expenses we have
Config::Set(
'EXPENSE_TYPES', array(
'M'=>'Monthly',
'F'=>'Per Flight',
'P'=>'Percent (month)',
'G'=>'Percent (per flight)'
)
);
/* These are pilot statuses which can be selected in
the admin panel. I would be weary of changing these!
Though you can safely change the name or messages or tweak
the additional settings provided
*/
Config::Set('PILOT_STATUS_TYPES', array(
/* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */
0 => array(
'name' => 'Active', # The title to show in the dropdown
'message' => '', # Message to show if they can't login (below is false)
'default' => true, # Should this be their default status?
'canlogin' => true, # Are they allowed to log in
'active' => true, # Are they an active pilot?
'autoretire' => false, # Use this status for the auto-retire functionality
'group_add' => array( # ID or name of the group this user is added to with this status
'Active Pilots',
),
'group_remove' => array( # ID or name of the groups this user is removed from with this status
'Inactive Pilots',
),
),
/* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */
1 => array(
'name' => 'Inactive',
'message' => 'Your account was marked inactive',
'default' => false,
'canlogin' => false,
'active' => false,
'autoretire' => false,
'group_add' => array(
'Inactive Pilots',
),
'group_remove' => array(
'Active Pilots',
),
),
2 => array(
'name' => 'Banned',
'message' => 'Your account is banned, please contact an admin!',
'default' => false,
'canlogin' => false,
'active' => false,
'autoretire' => false,
'group_add' => array(
'Inactive Pilots',
),
'group_remove' => array(
'Active Pilots',
),
),
3 => array(
'name' => 'On Leave',
'message' => 'You have been marked as on leave',
'default' => false,
'canlogin' => true,
'active' => false,
'autoretire' => true,
'group_add' => array(
'Inactive Pilots',
),
'group_remove' => array(
'Active Pilots',
),
),
));
define('SIGNATURE_PATH', '/lib/signatures');
define('AVATAR_PATH', '/lib/avatars');
# PIREP Statuses
define('PIREP_PENDING', 0);
define('PIREP_ACCEPTED', 1);
define('PIREP_REJECTED', 2);
define('PIREP_INPROGRESS', 3);
# Pilot Registration
define('PILOT_PENDING', 0);
define('PILOT_ACCEPTED', 1);
define('PILOT_REJECTED', 2);
# Constants for 'paysource' column in ledger
define('PAYSOURCE_PIREP', 1);
# Constants for 'paytype' column in ledge
define('PILOT_PAY_HOURLY', 1);
define('PILOT_PAY_SCHEDULE', 2);
define('PILOT_PAY_FIXED', 3);
# Activity Feed types
define('ACTIVITY_NEW_PIREP', 1);
define('ACTIVITY_NEW_PILOT', 2);
define('ACTIVITY_PROMOTION', 3);
define('ACTIVITY_NEW_AWARD', 4);
define('ACTIVITY_NEW_BID', 5);
define('ACTIVITY_TWITTER', 6);
define('TWITTER_STATUS_URL', 'http://api.twitter.com/1/statuses/user_timeline.json?include_entities=0&screen_name=');
define('NAV_NDB', 2);
define('NAV_VOR', 3);
define('NAV_DME', 4);
define('NAV_FIX', 5);
define('NAV_TRACK', 6);
define('LOAD_VARIATION', 5);
define('SECONDS_PER_DAY', 86400);
define('VMS_AUTH_COOKIE', 'VMSAUTH');
/**
* Library Includes (from 3rd Party)
*/
# Bit-masks for permission sets
$permission_set = array(
/*'NO_ADMIN_ACCESS' => 0,*/
'ACCESS_ADMIN' => 0x1,
'EDIT_NEWS' => 0x2,
'EDIT_PAGES' => 0x4,
'EDIT_DOWNLOADS' => 0x8,
'EMAIL_PILOTS' => 0x10,
'EDIT_AIRLINES' => 0x20,
'EDIT_FLEET' => 0x40,
'EDIT_SCHEDULES' => 0x80,
'IMPORT_SCHEDULES' => 0x100,
'MODERATE_REGISTRATIONS' => 0x200,
'EDIT_PILOTS' => 0x400,
'EDIT_GROUPS' => 0x800,
'EDIT_RANKS' => 0x1000,
'EDIT_AWARDS' => 0x2000,
'MODERATE_PIREPS' => 0x4000,
'EDIT_PIREPS_FIELDS' => 0x8000,
'VIEW_FINANCES' => 0x10000,
'EDIT_EXPENSES' => 0x20000,
'EDIT_SETTINGS' => 0x40000,
'EDIT_PROFILE_FIELDS' => 0x80000,
'EDIT_VACENTRAL' => 0x100000,
'MAINTENANCE' => 0x2000000,
//'CUSTOM_PERM1' => 0x4000000,
//'CUSTOM_PERM2' => 0x8000000,
//'CUSTOM_PERM3' => 0x10000000,
'FULL_ADMIN' => 0x7FFFFFFF // == 2147483647 == Maximum 32bits
);
# Discriptions for permission sets
$permission_discription = array(
/*'NO_ADMIN_ACCESS' => 0,*/
'ACCESS_ADMIN' => 'Give a user access to the administration panel. This is required if any other permissions are set.',
'EDIT_NEWS' => '(News & Content) Give a user access to add & edit the news & notams.',
'EDIT_PAGES' => '(News & Content) Give a user access to add & edit the pages.',
'EDIT_DOWNLOADS' => '(News & Content) Give a user access to add & edit the downloads.',
'EMAIL_PILOTS' => '(News & Content) Give a user access to email your pilots.',
'EDIT_AIRLINES' => '(Airline Operations) Give a user access to add & edit your airlines.',
'EDIT_FLEET' => '(Airline Operations) Give a user access to add & edit your fleet.',
'EDIT_SCHEDULES' => '(Airline Operations) Give a user access to add & edit schedules.',
'IMPORT_SCHEDULES' => '(Airline Operations) Give a user access to import and export schedules.',
'MODERATE_REGISTRATIONS' => '(Pilots & Groups) Allow a user to moderate new site registrations.',
'EDIT_PILOTS' => '(Pilots & Groups) Give a user access to edit your pilots.',
'EDIT_GROUPS' => '(Pilots & Groups) Give a user access to add & edit pilot groups. Might aswell just give them full admin.',
'EDIT_RANKS' => '(Pilots & Groups) Give a user access to add & edit ranks.',
'EDIT_AWARDS' => '(Pilots & Groups) Give a user access to add & edit awards.',
'MODERATE_PIREPS' => '(Pilot Reports (PIREPS)) Give a user access to moderate PIREPS',
'EDIT_PIREPS_FIELDS' => '(Pilot Reports (PIREPS)) Give a user access to add and edit PIREPS fields.',
'VIEW_FINANCES' => '(Reports & Expenses) Give a user access to view your finances.',
'EDIT_EXPENSES' => '(Reports & Expenses) Give a user access to edit your expenses.',
'EDIT_SETTINGS' => '(Site & Settings) Give a user access to edit your site settings.',
'EDIT_PROFILE_FIELDS' => '(Site & Settings) Give a user access to add and edit profile fields.',
'EDIT_VACENTRAL' => '(Site & Settings) Give a user access to edit your VACentral Settings.',
//'CUSTOM_PERM0' => 'Custom Discription of the permission',
//'CUSTOM_PERM1' => 'Custom Discription of the permission',
//'CUSTOM_PERM2' => 'Custom Discription of the permission',
//'CUSTOM_PERM3' => 'Custom Discription of the permission',
'FULL_ADMIN' => 'Full Administration Over-ride. This option will automatically overide all above settings, enabling all of them.'
);
Config::Set('permission_set', $permission_set);
Config::Set('permission_discription', $permission_discription);
define('NO_ADMIN_ACCESS', 0);
foreach($permission_set as $key=>$value) {
define($key, $value);
}
foreach($permission_discription as $key=>$value) {
define($key.'_DISCRIP', $value);
}