diff --git a/application/config/config-sample-dblib.php b/application/config/config-sample-dblib.php index 1b2d2e9cbe5..a630b8fe77e 100644 --- a/application/config/config-sample-dblib.php +++ b/application/config/config-sample-dblib.php @@ -42,7 +42,9 @@ 'urlManager' => array( 'urlFormat' => 'get', - 'rules' => require('routes.php'), + 'rules' => array( + // You can put your own rules here + ), 'showScriptName' => true, ), @@ -54,7 +56,7 @@ // on your webspace. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates '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 ) ); /* End of file config.php */ diff --git a/application/config/config-sample-mysql.php b/application/config/config-sample-mysql.php index e1b7aa11d57..46685320093 100644 --- a/application/config/config-sample-mysql.php +++ b/application/config/config-sample-mysql.php @@ -22,31 +22,33 @@ | */ return array( - 'components' => array( - 'db' => array( - 'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey;', - 'emulatePrepare' => true, - 'username' => 'root', - 'password' => '', - 'charset' => 'utf8', - 'tablePrefix' => 'lime_', - ), + 'components' => array( + 'db' => array( + 'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey;', + 'emulatePrepare' => true, + 'username' => 'root', + 'password' => '', + 'charset' => 'utf8', + 'tablePrefix' => 'lime_', + ), // Uncomment the following section if you wish to store sessions in the database // rather than in files. // Make sure MySQL max_allowed_packet setting is large enough, some surveys generate over 2 MB of session data. /* - 'session' => array ( - 'class' => 'system.web.CDbHttpSession', - 'connectionID' => 'db', - 'sessionTableName' => '{{sessions}}', - ), + 'session' => array ( + 'class' => 'system.web.CDbHttpSession', + 'connectionID' => 'db', + 'sessionTableName' => '{{sessions}}', + ), */ 'urlManager' => array( 'urlFormat' => 'get', - 'rules' => require('routes.php'), - 'showScriptName' => true, + 'rules' => array( + // You can put 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 @@ -54,7 +56,7 @@ // on your webspace. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates '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 ) ); /* End of file config.php */ diff --git a/application/config/config-sample-pgsql.php b/application/config/config-sample-pgsql.php index 7c0f34b9257..ef15fa47a13 100644 --- a/application/config/config-sample-pgsql.php +++ b/application/config/config-sample-pgsql.php @@ -12,50 +12,52 @@ | EXPLANATION OF VARIABLES | ------------------------------------------------------------------- | -| '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 +| '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 | */ return array( - 'name' => 'LimeSurvey', - 'components' => array( - 'db' => array( - 'connectionString' => 'pgsql:host=localhost;port=5432;user=postgres;password=somepassword;dbname=limesurvey;', - 'emulatePrepare' => true, - 'username' => 'postgres', - 'password' => 'somepassword', - 'charset' => 'utf8', - 'tablePrefix' => 'lime_', - ), - - // Uncomment the following line if you need table-based sessions - // 'session' => array ( - // 'class' => 'system.web.CDbHttpSession', - // 'connectionID' => 'db', - // 'sessionTableName' => '{{sessions}}', - // ), - - 'urlManager' => array( - 'urlFormat' => 'get', - 'rules' => require('routes.php'), - '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 - // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory - // on your webspace. - // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates - 'debug'=>0, - 'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2 - ) + 'name' => 'LimeSurvey', + 'components' => array( + 'db' => array( + 'connectionString' => 'pgsql:host=localhost;port=5432;user=postgres;password=somepassword;dbname=limesurvey;', + 'emulatePrepare' => true, + 'username' => 'postgres', + 'password' => 'somepassword', + 'charset' => 'utf8', + 'tablePrefix' => 'lime_', + ), + + // Uncomment the following line if you need table-based sessions + // 'session' => array ( + // 'class' => 'system.web.CDbHttpSession', + // 'connectionID' => 'db', + // 'sessionTableName' => '{{sessions}}', + // ), + + 'urlManager' => array( + 'urlFormat' => 'get', + 'rules' => array( + // You can put 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 + // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory + // on your webspace. + // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates + 'debug'=>0, + 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 + ) ); /* End of file config.php */ /* Location: ./application/config/config.php */ diff --git a/application/config/config-sample-sqlsrv.php b/application/config/config-sample-sqlsrv.php index 21605114a5c..552748ad1de 100644 --- a/application/config/config-sample-sqlsrv.php +++ b/application/config/config-sample-sqlsrv.php @@ -42,7 +42,9 @@ 'urlManager' => array( 'urlFormat' => 'get', - 'rules' => require('routes.php'), + 'rules' => array( + // You can put your own rules here + ), 'showScriptName' => true, ), @@ -54,7 +56,7 @@ // on your webspace. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates '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 ) ); /* End of file config.php */