Skip to content

Commit

Permalink
Dev: remove double inclusion of routes.php file
Browse files Browse the repository at this point in the history
Dev: Add , after debugsl (more easy to add extra config)
  • Loading branch information
Shnoulle committed Mar 9, 2015
1 parent d8fa957 commit 335cbc7
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 63 deletions.
6 changes: 4 additions & 2 deletions application/config/config-sample-dblib.php
Expand Up @@ -42,7 +42,9 @@

'urlManager' => array(
'urlFormat' => 'get',
'rules' => require('routes.php'),
'rules' => array(
// You can put your own rules here
),
'showScriptName' => true,
),

Expand All @@ -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 */
Expand Down
38 changes: 20 additions & 18 deletions application/config/config-sample-mysql.php
Expand Up @@ -22,39 +22,41 @@
|
*/
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
// 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
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
)
);
/* End of file config.php */
Expand Down
84 changes: 43 additions & 41 deletions application/config/config-sample-pgsql.php
Expand Up @@ -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 */
6 changes: 4 additions & 2 deletions application/config/config-sample-sqlsrv.php
Expand Up @@ -42,7 +42,9 @@

'urlManager' => array(
'urlFormat' => 'get',
'rules' => require('routes.php'),
'rules' => array(
// You can put your own rules here
),
'showScriptName' => true,
),

Expand All @@ -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 */
Expand Down

0 comments on commit 335cbc7

Please sign in to comment.