<?php



/*

 *---------------------------------------------------------------

 * APPLICATION ENVIRONMENT

 *---------------------------------------------------------------

 *

 * You can load different configurations depending on your

 * current environment. Setting the environment also influences

 * things like logging and error reporting.

 *

 * This can be set to anything, but default usage is:

 *

 *     development

 *     testing

 *     production

 *

 * NOTE: If you change these, also change the error_reporting() code below

 *

 */

	define('ENVIRONMENT', 'production');

/*

 *---------------------------------------------------------------

 * ERROR REPORTING

 *---------------------------------------------------------------

 *

 * Different environments will require different levels of error reporting.

 * By default development will show errors but testing and live will hide them.

 */



if (defined('ENVIRONMENT'))

{

	switch (ENVIRONMENT)

	{

		case 'development':

			error_reporting(E_ALL);

		break;



		case 'testing':

		case 'production':

			error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

		break;



		default:

			exit('The application environment is not set correctly.');

	}

}



/*

|--------------------------------------------------------------------------

| Base Site URL

|--------------------------------------------------------------------------

|

| URL to your CodeIgniter root. Typically this will be your base URL,

| WITH a trailing slash:

|

|	http://example.com/

|

| If this is not set then CodeIgniter will guess the protocol, domain and

| path to your installation.

|

*/



/*

 * IMPORTANT: DON'T USE $_SERVER OR ANY PHP VARIABLES HERE!!!

 * THIS HAS TO BE A STATIC TEXT WITHIN QUOTES AND SLASH AT THE END!

 */

	$assign_to_config['base_url'] = 'https://www.venomwear.us/';



/*

 * Uncomment this to use a different url for secure_url() which

 * will allow you to use different https and http links.

 * By default secure_url() will return the base_url defined above.

 */

	//$assign_to_config['secure_url'] = 'https://website.com/';



/*

 *---------------------------------------------------------------

 * SYSTEM FOLDER NAME

 *---------------------------------------------------------------

 *

 * This variable must contain the name of your "system" folder.

 * Include the path if the folder is not in the same  directory

 * as this file.

 *

 */



/*

 * IMPORTANT: DON'T USE $_SERVER OR ANY PHP VARIABLES HERE!!!

 * THIS HAS TO BE A STATIC TEXT WITHIN QUOTES!

 */

	$system_path = '/usr/local/lib/ficms/ficms/system';



/*

 *---------------------------------------------------------------

 * APPLICATION FOLDER NAME

 *---------------------------------------------------------------

 *

 * If you want this front controller to use a different "application"

 * folder then the default one you can set its name here. The folder

 * can also be renamed or relocated anywhere on your server.  If

 * you do, use a full server path. For more info please see the user guide:

 * http://codeigniter.com/user_guide/general/managing_apps.html

 *

 * NO TRAILING SLASH!

 *

 */



/*

 * IMPORTANT: DON'T USE $_SERVER OR ANY PHP VARIABLES HERE!!!

 * THIS HAS TO BE A STATIC TEXT WITHIN QUOTES!

 */

	$application_folder = '/usr/local/lib/ficms/ficms/application';



/*

|--------------------------------------------------------------------------

| Index File

|--------------------------------------------------------------------------

|

| Typically this will be your index.php file, unless you've renamed it to

| something else. If you are using mod_rewrite to remove the page set this

| variable so that it is blank.

|

*/

	$assign_to_config['index_page'] = '';



/*

|--------------------------------------------------------------------------

| Encryption Key

|--------------------------------------------------------------------------

|

| If you use the Encryption class or the Session class you

| MUST set an encryption key.  See the user guide for info.

|

*/

	$assign_to_config['encryption_key'] = '#$%website^&*';



/*

|--------------------------------------------------------------------------

| Allowed URL Characters

|--------------------------------------------------------------------------

|

| This lets you specify with a regular expression which characters are permitted

| within your URLs.  When someone tries to submit a URL with disallowed

| characters they will get a warning message.

|

| As a security measure you are STRONGLY encouraged to restrict URLs to

| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-

|

| Leave blank to allow all characters -- but only if you are insane.

|

| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!

|

*/

	$assign_to_config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-+,';



/*

|--------------------------------------------------------------------------

| Global XSS Filtering

|--------------------------------------------------------------------------

|

| Determines whether the XSS filter is always active when GET, POST or

| COOKIE data is encountered

|

*/

	$assign_to_config['global_xss_filtering'] = TRUE;



/*

|--------------------------------------------------------------------------

| Cross Site Request Forgery

|--------------------------------------------------------------------------

| Enables a CSRF cookie token to be set. When set to TRUE, token will be

| checked on a submitted form. If you are accepting user data, it is strongly

| recommended CSRF protection be enabled.

|

| 'csrf_token_name' = The token name

| 'csrf_cookie_name' = The cookie name

| 'csrf_expire' = The number in seconds the token should expire.

*/

	$assign_to_config['csrf_protection'] = TRUE;

	$assign_to_config['csrf_token_name'] = 'csrf_ficms_token';

	$assign_to_config['csrf_cookie_name'] = 'csrf_ficms_cookie';

	$assign_to_config['csrf_expire'] = 18000;



/*

 * --------------------------------------------------------------------

 * DEFAULT CONTROLLER

 * --------------------------------------------------------------------

 *

 * Normally you will set your default controller in the routes.php file.

 * You can, however, force a custom routing by hard-coding a

 * specific controller class/function here.  For most applications, you

 * WILL NOT set your routing here, but it's an option for those

 * special instances where you might want to override the standard

 * routing in a specific front controller that shares a common CI installation.

 *

 * IMPORTANT:  If you set the routing here, NO OTHER controller will be

 * callable. In essence, this preference limits your application to ONE

 * specific controller.  Leave the function name blank if you need

 * to call functions dynamically via the URI.

 *

 * Un-comment the $routing array below to use this feature

 *

 */

	// The directory name, relative to the "controllers" folder.  Leave blank

	// if your controller is not in a sub-folder within the "controllers" folder

	// $routing['directory'] = '';



	// The controller class file name.  Example:  Mycontroller

	// $routing['controller'] = '';



	// The controller function you wish to be called.

	// $routing['function']	= '';





/*

 * -------------------------------------------------------------------

 *  CUSTOM CONFIG VALUES

 * -------------------------------------------------------------------

 *

 * The $assign_to_config array below will be passed dynamically to the

 * config class when initialized. This allows you to set custom config

 * items or override any default config values found in the config.php file.

 * This can be handy as it permits you to share one application between

 * multiple front controller files, with each file containing different

 * config values.

 *

 * Un-comment the $assign_to_config array below to use this feature

 *

 */

	// $assign_to_config['name_of_config_item'] = 'value of config item';



/*

|--------------------------------------------------------------------------

| Web Service

|--------------------------------------------------------------------------

|

| Web service access is disabled by default for security reasons. If you

| need web service for your website set this to true and then the web

| service will be available for e.g. under http://domain.com/ws/'

|

| Please make sure your modules for the web service are protected and only

| accessible by logged in users, also please use ws_response() to send

| web service responses in JSON format.

|

*/

	define('WS_ENABLED', false);



	// Launch WebSocket server in a terminal with the following command

	// php -f /path/to/your/index.php ws server verbose

	$assign_to_config['ws_server_ip'] = '127.0.0.1';

	$assign_to_config['ws_server_port'] = 8080;

	$assign_to_config['ws_server_ssl'] = false;

	$assign_to_config['ws_server_ssl_pem'] = '/path/to/an/ssl/wsserver.pem';







/*

|--------------------------------------------------------------------------

| Admin Page

|--------------------------------------------------------------------------

|

| You can define a different location for your administration section this

| way allowing it to be hidden from bots and other eager eyes, if modified

| it will redirect the original admin/ path to the pages controller

| so it won't be accessible directly anymore.

|

*/

	define('ADMINDIR', 'bsolpanel');







/*

|--------------------------------------------------------------------------

| Parallel Cron Jobs

|--------------------------------------------------------------------------

|

| By default we disable crons running in parallel to eachother for e.g.

| cron/newsletter is called while another cron/newsletter is running

| we exit the second cron so we won't end up sending out multiple emails

| This should prevent all your crons from duplicating eachother so you

| don't need to do this manually but you can enable if you want be setting

| this to true.

|

*/

	define('PARALLEL_CRON', false);







// --------------------------------------------------------------------

// END OF USER CONFIGURABLE SETTINGS.  DO NOT EDIT BELOW THIS LINE

// --------------------------------------------------------------------



/*

 * ---------------------------------------------------------------

 *  Resolve the system path for increased reliability

 * ---------------------------------------------------------------

 */



	// Set the current directory correctly for CLI requests

	if (defined('STDIN'))

	{

		chdir(dirname(__FILE__));

	}



	if (realpath($system_path) !== FALSE)

	{

		$system_path = realpath($system_path).'/';

	}



	// ensure there's a trailing slash

	$system_path = rtrim($system_path, '/').'/';



	// Is the system path correct?

	if ( ! is_dir($system_path))

	{

		exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));

	}



/*

 * -------------------------------------------------------------------

 *  Now that we know the path, set the main path constants

 * -------------------------------------------------------------------

 */

	// The name of THIS file

	define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));



	// The PHP file extension

	// this global constant is deprecated.

	define('EXT', '.php');



	// Path to the system folder

	define('BASEPATH', str_replace("\\", "/", $system_path));



	// Path to the front controller (this file)

	define('FCPATH', str_replace(SELF, '', __FILE__));



	// Name of the "system folder"

	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));





	// The path to the "application" folder

	if (is_dir($application_folder))

	{

		if (realpath($application_folder) !== false)

			define('APPPATH', realpath($application_folder).'/');

		else

			define('APPPATH', $application_folder.'/');

	}

	else

	{

		if ( ! is_dir(BASEPATH.$application_folder.'/'))

		{

			exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);

		}



		define('APPPATH', BASEPATH.$application_folder.'/');

	}



/*

 *

 * Set our version number so we can keep track of changes and make

 * FICMS backward compatible.

 *

 */



define('FICMS_VERSION', '1.9.5');



/*

 * --------------------------------------------------------------------

 * LOAD THE BOOTSTRAP FILE

 * --------------------------------------------------------------------

 *

 * And away we go...

 *

 */

require_once BASEPATH.'core/CodeIgniter.php';



/* End of file index.php */

/* Location: ./index.php */
