Jump to content

Edit local.config problem


Petey

Recommended Posts

Upon on the edit of the local configuration file, the whole website turns out blank white (almost like a blank index.html file)

I was wondering was there a problem in editing it... since I was only changing one value manually in FTP. (The number of digits in the pilot ID from 4 to 3.

Link to comment
Share on other sites

Yeah I got the same thing. I edited the following

Config::Set('PILOTID_OFFSET', 0);	# What # to start pilot ID's from

and

Config::Set('LOAD_FACTOR', '82');	# %age load factor 

I set the id number to 1 and the load factor to 85 after that my site was blank. I did the edit from within my cpanel..

Link to comment
Share on other sites

i think you have the same in the app.local.config.php

i will show my configs now

local config(i have deleted my personal data

<?php

/**
* This is the phpVMS Main Configuration File
*
* This file won't be modified/touched by future versions
* of phpVMS, you can change your settings here
* 
* There may also be additional settings in app.config.php
* To change it, copy the line into this file here, for the
* settings to take effect
*
*/
define('DBASE_USER', 'xxxxxxxxxxx');
define('DBASE_PASS', 'xxxxxxxxxxxx');
define('DBASE_NAME', 'xxxxxxxxxxxx');
define('DBASE_SERVER', 'localhost');
define('DBASE_TYPE', 'mysql');

define('TABLE_PREFIX', 'phpvms_');

define('SITE_URL', 'xxxx');

# Page encoding options
Config::Set('PAGE_ENCODING', '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.Currently we make an Update for the System to be on the current Version.');

# See more details about these in the docs
Config::Set('PAGE_EXT', '.php');	# .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', '15');	# %age load factor 
Config::Set('CARGO_UNITS', 'lbs');

# 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', false);

# For how many hours a pilot can edit their submitted PIREP (custom fields only)
Config::Set('PIREP_CUSTOM_FIELD_EDIT', '2');

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', true);

# If you want to count transfer hours in rank calculations
Config::Set('TRANSFER_HOURS_IN_RANKS', false);

# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 20);

# Google Map Options
Config::Set('MAP_WIDTH', '700px');
Config::Set('MAP_HEIGHT', '600px');
# Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
Config::Set('MAP_TYPE', 'G_SATELLITE_MAP');
Config::Set('MAP_LINE_COLOR', '#ff0000');
Config::Set('MAP_CENTER_LAT', '52.383333');
Config::Set('MAP_CENTER_LNG', '13.529722');
Config::Set('MAP_ZOOM_LEVEL', 4);

# ACARS options
#  Minutes, flights to show on the ACARS
#  Default is 720 minutes (12 hours)
Config::Set('ACARS_LIVE_TIME', 30); 
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', '€');

# FSPassengers Settings
# Units settings
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', 'Welcome to SF Logistic Acars'); # Welcome Message

/* 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 
*/
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_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE',false);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', false);

# Avatar information
Config::Set('AVATAR_FILE_SIZE', 20000); 
Config::Set('AVATAR_MAX_WIDTH', 80);
Config::Set('AVATAR_MAX_HEIGHT', 80);

# 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_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');

# Debug mode is off by default
Config::Set('DEBUG_MODE', false);
Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);

Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds

/* Days of the Week
The compacted view, and the full text
DON'T CHANGE THE ORDER!! And yes, Sunday is in there twice
*/
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('VACENTRAL_ENABLED', true);
Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
Config::Set('VACENTRAL_API_KEY', 'xxxxxxxxxxxxxxxxxxxx');

and the app.config

<?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
*/

# 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', '19');	# %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',10);

# 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', false);

# 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', '2');

# 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', true);

# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', true);
Config::Set('BID_EXPIRE_TIME', '24'); # 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', '700px');
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', 30); 
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', '6.45');
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 
*/
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', false);
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', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
Config::Set('RECAPTCHA_PRIVATE_KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxx');

/*	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', true);
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', 'xxxxxxxxxxxxxxxxxxxx');
Config::Set('VACENTRAL_DATA_FORMAT', 'json');

/**
* Constants
*	Do not modify these! All sorts of weird s*** 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,*/
'EDIT_NEWS'				=> 0x1, 
'EDIT_PAGES'				=> 0x2, 
'EDIT_DOWNLOADS'			=> 0x4,
'EMAIL_PILOTS'			=> 0x8, 
'EDIT_AIRLINES'			=> 0x10,
'EDIT_FLEET'				=> 0x20,
'EDIT_SCHEDULES'			=> 0x80,
'IMPORT_SCHEDULES'		=> 0x100,
'MODERATE_REGISTRATIONS'	=> 0x200,
'EDIT_PILOTS'				=> 0x400,
'EDIT_GROUPS'				=> 0x800,
'EDIT_RANKS'				=> 0x1000,
'EDIT_AWARDS'				=> 0x2000,
'MODERATE_PIREPS'			=> 0x4000,
'VIEW_FINANCES'			=> 0x8000,
'EDIT_EXPENSES'			=> 0x10000,
'EDIT_SETTINGS'			=> 0x20000,
'EDIT_PIREPS_FIELDS'		=> 0x40000,
'EDIT_PROFILE_FIELDS'		=> 0x80000,
'EDIT_VACENTRAL'			=> 0x100000,
'ACCESS_ADMIN'			=> 0x2000000,
'FULL_ADMIN'				=> 35651519
);

Config::Set('permission_set', $permission_set);  
define('NO_ADMIN_ACCESS', 0);
foreach($permission_set as $key=>$value) {
define($key, $value);

look here int he codes and then change this what you need in your OWN configs

Link to comment
Share on other sites

Thanks! I also crossed check it with my test installation of phpvms and I guess by editing it in cpanel it didn't load all of code (only loaded to line 82 - weird) and when I saved it everything that didn't load was erased. I put everything back in, and now it works!

The lesson here, don't edit in cpanel :P

Link to comment
Share on other sites

The lesson here, don't edit in cpanel :P

I think that's probably good advice. I've had problems in the past with the editor in cPanel losing or otherwise maiming text. The best practice is to download the file to your local computer, edit it (preferable with something like Notepad++), and re-upload to the server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...