1<?php if (!defined('BASEPATH')) {
2    exit('No direct script access allowed');
3}
4/*
5| -------------------------------------------------------------------
6| DATABASE CONNECTIVITY SETTINGS
7| -------------------------------------------------------------------
8| This file will contain the settings needed to access your database.
9|
10| For complete instructions please consult the 'Database Connection'
11| page of the User Guide.
12|
13| -------------------------------------------------------------------
14| EXPLANATION OF VARIABLES
15| -------------------------------------------------------------------
16|
17|    'connectionString' Hostname, database, port and database type for
18|     the connection. Driver example: mysql. Currently supported:
19|                 mysql, pgsql, mssql, sqlite, oci
20|    'username' The username used to connect to the database
21|    'password' The password used to connect to the database
22|    'tablePrefix' You can add an optional prefix, which will be added
23|                 to the table name when using the Active Record class
24|
25*/
26return array(
27    'name' => 'LimeSurvey',
28    'components' => array(
29        'db' => array(
30            'connectionString' => 'sqlsrv:Server=localhost;Database=limesurvey',
31            'username' => 'sa',
32            'password' => 'somepassword',
33            'charset' => 'utf8',
34            'tablePrefix' => 'lime_',
35            'initSQLs'=>array('SET DATEFORMAT ymd;', 'SET QUOTED_IDENTIFIER ON;'),
36        ),
37
38        // Uncomment the following lines if you need table-based sessions.
39        // Note: Table-based sessions are currently not supported on MSSQL server.
40        // 'session' => array (
41            // 'class' => 'application.core.web.DbHttpSession',
42            // 'connectionID' => 'db',
43            // 'sessionTableName' => '{{sessions}}',
44        // ),
45
46        'urlManager' => array(
47            'urlFormat' => 'get',
48            'rules' => require('routes.php'),
49            'showScriptName' => true,
50        ),
51
52    ),
53    // Use the following config variable to set modified optional settings copied from config-defaults.php
54    'config'=>array(
55    // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
56    // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
57    // on your webspace.
58    // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard themes
59        'debug'=>0,
60        'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
61        // '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)
62        // 'use_asset_manager'=>true, // Uncomment if you want to use debug mode and asset manager at the same time
63    )
64);
65/* End of file config.php */
66/* Location: ./application/config/config.php */
67