2021-07-12 13:42:12 +02:00
< ? php if ( ! defined ( 'BASEPATH' )) {
exit ( 'No direct script access allowed' );
}
2015-05-31 13:46:25 +02:00
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database .
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide .
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
2021-07-12 13:42:12 +02:00
| 'connectionString' Hostname , database , port and database type for
| the connection . Driver example : mysql . Currently supported :
| mysql , pgsql , mssql , sqlite , oci
| 'username' The username used to connect to the database
| 'password' The password used to connect to the database
| 'tablePrefix' You can add an optional prefix , which will be added
| to the table name when using the Active Record class
2015-05-31 13:46:25 +02:00
|
*/
return array (
2021-07-12 13:42:12 +02:00
'components' => array (
'db' => array (
'connectionString' => 'mysql:host=localhost;port=3306;dbname=__DB_NAME__;' ,
'emulatePrepare' => true ,
2022-06-16 00:33:32 +02:00
'username' => '__DB_USER__' ,
2021-07-12 13:42:12 +02:00
'password' => '__DB_PWD__' ,
'charset' => 'utf8mb4' ,
2022-06-16 00:33:32 +02:00
'tablePrefix' => '__PREFIX__' ,
2021-07-12 13:42:12 +02:00
),
2015-05-31 13:46:25 +02:00
2021-07-12 14:18:13 +02:00
'emcache' => array ( 'class' => 'CFileCache' ),
2021-07-12 13:42:12 +02:00
// Uncomment the following lines if you need table-based sessions.
// Note: Table-based sessions are currently not supported on MSSQL server.
// 'session' => array (
// 'class' => 'application.core.web.DbHttpSession',
// 'connectionID' => 'db',
// 'sessionTableName' => '{{sessions}}',
// ),
2015-05-31 13:46:25 +02:00
2021-07-12 13:42:12 +02:00
'urlManager' => array (
'urlFormat' => 'get' ,
'rules' => array (
// You can add your own rules here
),
'showScriptName' => true ,
2015-05-31 13:46:25 +02:00
),
2021-07-12 13:42:12 +02:00
),
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config' => array (
2015-05-31 13:46:25 +02:00
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
2021-07-12 13:42:12 +02:00
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and put MySQL in STRICT mode and get full access to standard themes
2022-01-14 02:31:12 +01:00
'debug' => 0 ,
'debugsql' => 0 , // Set this to 1 to enanble sql logging, only active when debug = 2
2021-07-12 13:42:12 +02:00
// 'force_xmlsettings_for_survey_rendering' => true, // Uncomment if you want to force the use of the XML file rather than DB (for easy theme development)
// 'use_asset_manager'=>true, // Uncomment if you want to use debug mode and asset manager at the same time
2022-01-14 02:31:12 +01:00
'enableLdap' => true ,
'force_ssl' => true ,
2024-01-23 16:40:33 +01:00
'uploaddir' => '__DATA_DIR__/upload'
2021-07-12 13:42:12 +02:00
)
2015-05-31 13:46:25 +02:00
);
/* End of file config.php */
/* Location: ./application/config/config.php */