Advertisement
Guest User

Untitled

a guest
Aug 20th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.57 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * This is the phpVMS Main Configuration File
  5.  *
  6.  * This file won't be modified/touched by future versions
  7.  * of phpVMS, you can change your settings here
  8.  *
  9.  * There may also be additional settings in app.config.php
  10.  * To change it, copy the line into this file here, for the
  11.  * settings to take effect
  12.  *
  13.  */
  14. Config::Set('DEBUG_MODE', true);
  15. Config::Set('DEBUG_LEVEL', 2); // 1 logs query errors, 2 logs all queries
  16. Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);
  17.  
  18. define('DBASE_USER', '***');
  19. define('DBASE_PASS', '***');
  20. define('DBASE_NAME', '***');
  21. define('DBASE_SERVER', 'localhost');
  22. define('DBASE_TYPE', 'mysqli');
  23.  
  24. define('TABLE_PREFIX', 'phpvms_');
  25.  
  26. define('SITE_URL', '***');
  27.  
  28. # Page encoding options
  29. Config::Set('PAGE_ENCODING', 'ISO-8859-1');
  30.  
  31. # Clean URLs - set this to true, and then uncomment
  32. # the lines indicated in the .htaccess file
  33. Config::Set('URL_REWRITE', false);
  34.  
  35. # Maintenance mode - this disables the site to non-admins
  36. Config::Set('MAINTENANCE_MODE', false);
  37. Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');
  38.  
  39. /*  Whether you have the /admin/maintenance.php script added into cron.
  40.     If you do, set this to true. This saves many DB calls since phpVMS will
  41.     have to 'fake' a cron-job
  42.     */
  43. Config::Set('USE_CRON', false);
  44.  
  45. Config::Set('CHECK_RELEASE_VERSION', true);
  46. Config::Set('CHECK_BETA_VERSION', false);
  47.  
  48. # See more details about these in the docs
  49. Config::Set('PAGE_EXT', '.htm');    # .htm is fine. You can still run PHP
  50. Config::Set('PILOTID_OFFSET', 0);   # What # to start pilot ID's from
  51. Config::Set('PILOTID_LENGTH', 4);   # Length of the Pilot ID
  52. Config::Set('UNITS', 'nm');         # Your units: nm, mi or km
  53. Config::Set('LOAD_FACTOR', '82');   # %age load factor
  54. Config::Set('CARGO_UNITS', 'lbs');
  55.  
  56. # After how long to mark a pilot inactive, in days
  57. Config::Set('PILOT_AUTO_RETIRE', true);
  58. Config::Set('PILOT_INACTIVE_TIME', 90);
  59.  
  60. # Automatically confirm pilots?
  61. Config::Set('PILOT_AUTO_CONFIRM', false);
  62.  
  63. # Automatically calculate ranks?
  64. Config::Set('RANKS_AUTOCALCULATE', true);
  65.  
  66. # For how many hours a pilot can edit their submitted PIREP (custom fields only)
  67. Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');
  68.  
  69. # If someone places a bid, whether to disable that or not
  70. Config::Set('DISABLE_SCHED_ON_BID', true);
  71. Config::Set('DISABLE_BIDS_ON_BID', false);
  72.  
  73. # If you want to count transfer hours in rank calculations
  74. Config::Set('TRANSFER_HOURS_IN_RANKS', false);
  75.  
  76. # The StatsData::UserOnline() function - how many minutes to check
  77. Config::Set('USERS_ONLINE_TIME', 20);
  78.  
  79. # Google Map Options
  80. Config::Set('MAP_WIDTH', '800px');
  81. Config::Set('MAP_HEIGHT', '600px');
  82. # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
  83. Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');
  84. Config::Set('MAP_LINE_COLOR', '#ff0000');
  85. Config::Set('MAP_CENTER_LAT', '45.484400');
  86. Config::Set('MAP_CENTER_LNG', '-62.334821');
  87. Config::Set('MAP_ZOOM_LEVEL', 12);
  88.  
  89. # ACARS options
  90. #  Minutes, flights to show on the ACARS
  91. #  Default is 720 minutes (12 hours)
  92. Config::Set('ACARS_LIVE_TIME', 720);
  93. Config::Set('ACARS_DEBUG', false);
  94.  
  95. # This is your airline's twitter account, if it exists
  96. Config::Set('TWITTER_AIRLINE_ACCOUNT', '');
  97. Config::Set('TWITTER_ENABLE_PUSH', false);
  98. Config::Set('TWITTER_CONSUMER_KEY', '');
  99. Config::Set('TWITTER_CONSUMER_SECRET', '');
  100. Config::Set('TWITTER_OAUTH_TOKEN', '');
  101. Config::Set('TWITTER_OAUTH_SECRET', '');
  102.  
  103. /*
  104.   This is the unit of money. For non-dollars, use :
  105.     Dollars ($), enter "$"
  106.     Euro (€), enter "&#8364;"
  107.     Yen (¥), enter "&yen;"
  108.     Pounds (£), enter "&pound;"
  109.    
  110.   For example, to set EUROS:
  111.     Config::Set('MONEY_UNIT', '&#8364;');
  112.  */
  113.  
  114. Config::Set('MONEY_UNIT', '$');
  115.  
  116. # FSPassengers Settings
  117. # Units settings
  118. Config::Set('WeightUnit', '1');   # 0=Kg 1=lbs
  119. Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
  120. Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
  121. Config::Set('AltUnit', '1');   # 0=Meter 1=Feet
  122. Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs
  123. Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message
  124.  
  125. /* FSFK Settings
  126.     Your FTP Server, and path to the lib/images folder (from where the FTP connects from), IE
  127.     ftp://phpvms.net/phpvms/lib/fsfk or ftp://phpvms.net/public_html/phpvms/lib/fsfk
  128.    
  129.     You want the path from when you connect to the FTP down to where the /lib/fsfk folder is
  130.    
  131.     SECURITY NOTE! Make a separate FTP user and password ONLY for this, with access only to this folder
  132. */
  133. Config::Set('FSFK_FTP_SERVER', '');
  134. Config::Set('FSFK_FTP_PORT', '21');
  135. Config::Set('FSFK_FTP_USER', '');
  136. Config::Set('FSFK_FTP_PASS', '');
  137. Config::Set('FSFK_FTP_PASSIVE_MODE', 'TRUE');
  138. Config::Set('FSFK_IMAGE_PATH', '/lib/fsfk'); // web path from SITE_ROOT
  139.  
  140. # Options for the signature that's generated
  141. Config::Set('SIGNATURE_TEXT_COLOR', '#000');
  142. Config::Set('SIGNATURE_SHOW_EARNINGS', true);
  143. Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
  144. Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);
  145.  
  146. # Avatar information
  147. Config::Set('AVATAR_FILE_SIZE', 50000);
  148. Config::Set('AVATAR_MAX_WIDTH', 80);
  149. Config::Set('AVATAR_MAX_HEIGHT', 80);
  150.  
  151. # Email Settings
  152. Config::Set('EMAIL_FROM_NAME', '');
  153. Config::Set('EMAIL_FROM_ADDRESS', '');
  154.  
  155. Config::Set('EMAIL_USE_SMTP', false);
  156. # Add multiple SMTP servers by separating them with ;
  157. Config::Set('EMAIL_SMTP_SERVERS', '');
  158. Config::Set('EMAIL_SMTP_PORT', '25');
  159. Config::Set('EMAIL_SMTP_USE_AUTH', false);
  160. Config::Set('EMAIL_SMTP_SECURE', 'ssl'); # must be "ssl" for Google Apps
  161. Config::Set('EMAIL_SMTP_USER', '');
  162. Config::Set('EMAIL_SMTP_PASS', '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement