Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../ospos
File: database.php
<?php
[0] Fix | Delete
defined('BASEPATH') OR exit('No direct script access allowed');
[1] Fix | Delete
[2] Fix | Delete
/*
[3] Fix | Delete
| -------------------------------------------------------------------
[4] Fix | Delete
| DATABASE CONNECTIVITY SETTINGS
[5] Fix | Delete
| -------------------------------------------------------------------
[6] Fix | Delete
| This file will contain the settings needed to access your database.
[7] Fix | Delete
|
[8] Fix | Delete
| For complete instructions please consult the 'Database Connection'
[9] Fix | Delete
| page of the User Guide.
[10] Fix | Delete
|
[11] Fix | Delete
| -------------------------------------------------------------------
[12] Fix | Delete
| EXPLANATION OF VARIABLES
[13] Fix | Delete
| -------------------------------------------------------------------
[14] Fix | Delete
|
[15] Fix | Delete
| ['dsn'] The full DSN string describe a connection to the database.
[16] Fix | Delete
| ['hostname'] The hostname of your database server.
[17] Fix | Delete
| ['username'] The username used to connect to the database
[18] Fix | Delete
| ['password'] The password used to connect to the database
[19] Fix | Delete
| ['database'] The name of the database you want to connect to
[20] Fix | Delete
| ['dbdriver'] The database driver. e.g.: mysqli.
[21] Fix | Delete
| Currently supported:
[22] Fix | Delete
| cubrid, ibase, mssql, mysql, mysqli, oci8,
[23] Fix | Delete
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
[24] Fix | Delete
| ['dbprefix'] You can add an optional prefix, which will be added
[25] Fix | Delete
| to the table name when using the Query Builder class
[26] Fix | Delete
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
[27] Fix | Delete
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
[28] Fix | Delete
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
[29] Fix | Delete
| ['cachedir'] The path to the folder where cache files should be stored
[30] Fix | Delete
| ['char_set'] The character set used in communicating with the database
[31] Fix | Delete
| ['dbcollat'] The character collation used in communicating with the database
[32] Fix | Delete
| NOTE: For MySQL and MySQLi databases, this setting is only used
[33] Fix | Delete
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
[34] Fix | Delete
| (and in table creation queries made with DB Forge).
[35] Fix | Delete
| There is an incompatibility in PHP with mysql_real_escape_string() which
[36] Fix | Delete
| can make your site vulnerable to SQL injection if you are using a
[37] Fix | Delete
| multi-byte character set and are running versions lower than these.
[38] Fix | Delete
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
[39] Fix | Delete
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
[40] Fix | Delete
| ['encrypt'] Whether or not to use an encrypted connection.
[41] Fix | Delete
|
[42] Fix | Delete
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
[43] Fix | Delete
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
[44] Fix | Delete
|
[45] Fix | Delete
| 'ssl_key' - Path to the private key file
[46] Fix | Delete
| 'ssl_cert' - Path to the public key certificate file
[47] Fix | Delete
| 'ssl_ca' - Path to the certificate authority file
[48] Fix | Delete
| 'ssl_capath' - Path to a directory containing trusted CA certificats in PEM format
[49] Fix | Delete
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
[50] Fix | Delete
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not ('mysqli' only)
[51] Fix | Delete
|
[52] Fix | Delete
| ['compress'] Whether or not to use client compression (MySQL only)
[53] Fix | Delete
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
[54] Fix | Delete
| - good for ensuring strict SQL while developing
[55] Fix | Delete
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
[56] Fix | Delete
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
[57] Fix | Delete
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
[58] Fix | Delete
| NOTE: Disabling this will also effectively disable both
[59] Fix | Delete
| $this->db->last_query() and profiling of DB queries.
[60] Fix | Delete
| When you run a query, with this setting set to TRUE (default),
[61] Fix | Delete
| CodeIgniter will store the SQL statement for debugging purposes.
[62] Fix | Delete
| However, this may cause high memory usage, especially if you run
[63] Fix | Delete
| a lot of SQL queries ... disable this to avoid that problem.
[64] Fix | Delete
|
[65] Fix | Delete
| The $active_group variable lets you choose which connection group to
[66] Fix | Delete
| make active. By default there is only one group (the 'default' group).
[67] Fix | Delete
|
[68] Fix | Delete
| The $query_builder variables lets you determine whether or not to load
[69] Fix | Delete
| the query builder class.
[70] Fix | Delete
*/
[71] Fix | Delete
$active_group = 'default';
[72] Fix | Delete
$query_builder = TRUE;
[73] Fix | Delete
[74] Fix | Delete
$db['default'] = array(
[75] Fix | Delete
'dsn' => '',
[76] Fix | Delete
'hostname' => '[[softdbhost]]',
[77] Fix | Delete
'username' => '[[softdbuser]]',
[78] Fix | Delete
'password' => '[[softdbpass]]',
[79] Fix | Delete
'database' => '[[softdb]]',
[80] Fix | Delete
'dbdriver' => 'mysqli',
[81] Fix | Delete
'dbprefix' => 'ospos_',
[82] Fix | Delete
'pconnect' => FALSE,
[83] Fix | Delete
'db_debug' => (ENVIRONMENT !== 'production'),
[84] Fix | Delete
'cache_on' => FALSE,
[85] Fix | Delete
'cachedir' => '',
[86] Fix | Delete
'char_set' => 'utf8',
[87] Fix | Delete
'dbcollat' => 'utf8_general_ci',
[88] Fix | Delete
'swap_pre' => '',
[89] Fix | Delete
'encrypt' => FALSE,
[90] Fix | Delete
'compress' => FALSE,
[91] Fix | Delete
'stricton' => FALSE,
[92] Fix | Delete
'failover' => array(),
[93] Fix | Delete
'save_queries' => TRUE
[94] Fix | Delete
);
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function