1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

Update config.php

This commit is contained in:
ericgaspar 2021-07-12 13:42:12 +02:00
parent ae004c3ac0
commit 1b4ab6102a

View file

@ -1,4 +1,6 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); <?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS | DATABASE CONNECTIVITY SETTINGS
@ -12,52 +14,55 @@
| EXPLANATION OF VARIABLES | EXPLANATION OF VARIABLES
| ------------------------------------------------------------------- | -------------------------------------------------------------------
| |
| 'connectionString' Hostname, database, port and database type for | 'connectionString' Hostname, database, port and database type for
| the connection. Driver example: mysql. Currently supported: | the connection. Driver example: mysql. Currently supported:
| mysql, pgsql, mssql, sqlite, oci | mysql, pgsql, mssql, sqlite, oci
| 'username' The username used to connect to the database | 'username' The username used to connect to the database
| 'password' The password 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 | 'tablePrefix' You can add an optional prefix, which will be added
| to the table name when using the Active Record class | to the table name when using the Active Record class
| |
*/ */
return array( return array(
'components' => array( 'components' => array(
'db' => array( 'db' => array(
'connectionString' => 'mysql:host=localhost;port=3306;dbname=__DB_NAME__;', 'connectionString' => 'mysql:host=localhost;port=3306;dbname=__DB_NAME__;',
'emulatePrepare' => true, 'emulatePrepare' => true,
'username' => '__DB_NAME__', 'username' => '__DB_NAME__',
'password' => '__DB_PWD__', 'password' => '__DB_PWD__',
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'tablePrefix' => 'lime_', 'tablePrefix' => 'lime_',
),
// Uncomment the following line if you need table-based sessions
// 'session' => array (
// 'class' => 'application.core.web.DbHttpSession',
// 'connectionID' => 'db',
// 'sessionTableName' => '{% raw %}{{sessions}}{% endraw %}',
// ),
'urlManager' => array(
'urlFormat' => 'get',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
), ),
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array( // 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}}',
// ),
'urlManager' => array(
'urlFormat' => 'get',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
),
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this // 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 // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace. // on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates // 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
'debug'=>0, 'debug'=>0,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
'enableLdap'=>true // '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
'enableLdap'=>true
)
); );
/* End of file config.php */ /* End of file config.php */
/* Location: ./application/config/config.php */ /* Location: ./application/config/config.php */