PluginProbe
ShiftController Employee Shift Scheduling / 2.2.3
ShiftController Employee Shift Scheduling v2.2.3
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / happ / application / config / database.php

database.php in ShiftController Employee Shift Scheduling 2.2.3, at happ/application/config/database.php

73 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 $app = CI::$APP->config->item('nts_app');
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 | ['hostname'] The hostname of your database server.
18 | ['username'] The username used to connect to the database
19 | ['password'] The password used to connect to the database
20 | ['database'] The name of the database you want to connect to
21 | ['dbdriver'] The database type. ie: mysql. Currently supported:
22 mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
23 | ['dbprefix'] You can add an optional prefix, which will be added
24 | to the table name when using the Active Record class
25 | ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
26 | ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
27 | ['cache_on'] TRUE/FALSE - Enables/disables query caching
28 | ['cachedir'] The path to the folder where cache files should be stored
29 | ['char_set'] The character set used in communicating with the database
30 | ['dbcollat'] The character collation used in communicating with the database
31 | NOTE: For MySQL and MySQLi databases, this setting is only used
32 | as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
33 | (and in table creation queries made with DB Forge).
34 | There is an incompatibility in PHP with mysql_real_escape_string() which
35 | can make your site vulnerable to SQL injection if you are using a
36 | multi-byte character set and are running versions lower than these.
37 | Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
38 | ['swap_pre'] A default table prefix that should be swapped with the dbprefix
39 | ['autoinit'] Whether or not to automatically initialize the database.
40 | ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
41 | - good for ensuring strict SQL while developing
42 |
43 | The $active_group variable lets you choose which connection group to
44 | make active. By default there is only one group (the 'default' group).
45 |
46 | The $active_record variables lets you determine whether or not to load
47 | the active record class
48 */
49
50 $active_group = 'default';
51 $active_record = TRUE;
52
53 $db['default']['hostname'] = isset($GLOBALS['NTS_CONFIG'][$app]['DB_HOST']) ? $GLOBALS['NTS_CONFIG'][$app]['DB_HOST'] : NTS_DB_HOST;
54 $db['default']['username'] = isset($GLOBALS['NTS_CONFIG'][$app]['DB_USER']) ? $GLOBALS['NTS_CONFIG'][$app]['DB_USER'] : NTS_DB_USER;
55 $db['default']['password'] = isset($GLOBALS['NTS_CONFIG'][$app]['DB_PASS']) ? $GLOBALS['NTS_CONFIG'][$app]['DB_PASS'] : NTS_DB_PASS;
56 $db['default']['database'] = isset($GLOBALS['NTS_CONFIG'][$app]['DB_NAME']) ? $GLOBALS['NTS_CONFIG'][$app]['DB_NAME'] : NTS_DB_NAME;
57 $db['default']['dbprefix'] = isset($GLOBALS['NTS_CONFIG'][$app]['DB_TABLES_PREFIX']) ? $GLOBALS['NTS_CONFIG'][$app]['DB_TABLES_PREFIX'] : NTS_DB_TABLES_PREFIX;
58
59 $db['default']['dbdriver'] = 'mysql';
60 //$db['default']['pconnect'] = TRUE;
61 $db['default']['pconnect'] = FALSE;
62 $db['default']['db_debug'] = TRUE;
63 $db['default']['cache_on'] = FALSE;
64 $db['default']['cachedir'] = '';
65 $db['default']['char_set'] = 'utf8';
66 $db['default']['dbcollat'] = 'utf8_general_ci';
67 $db['default']['swap_pre'] = '';
68 $db['default']['autoinit'] = TRUE;
69 $db['default']['stricton'] = FALSE;
70
71
72 /* End of file database.php */
73 /* Location: ./application/config/database.php */