Backend Service
This commit is contained in:
@@ -59,7 +59,7 @@ $autoload['packages'] = array();
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
//$autoload['libraries'] = array();
|
||||
$autoload['libraries'] = array('session','form_validation');
|
||||
$autoload['libraries'] = array('database','session','form_validation');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Drivers
|
||||
|
||||
@@ -30,6 +30,7 @@ define('MERMS_PROVIDERS_DASHLOAD', 150010);
|
||||
define('MERMS_PROVIDERS_LOADPROFILE', 150010);
|
||||
define('MERMS_PROVIDERS_UPDATEPROFILE', 150010);
|
||||
define('MERMS_PROVIDERS_REMINDERS', 150010);
|
||||
define('MERMS_PROVIDERS_CREATEMEMBER', 150055);
|
||||
//define('', 120001);
|
||||
|
||||
|
||||
@@ -70,4 +71,4 @@ define('MERMS_PROVIDERS_REMINDERS', 150010);
|
||||
#define MERMS_PROVIDERS_END 159999
|
||||
//
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
@@ -73,7 +73,40 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
require_once('backend.php');
|
||||
|
||||
$show_database_error = true;
|
||||
$is_live = $mermsemr->cfgReadChar("system.live");
|
||||
if ($is_live == false) {
|
||||
$show_database_error = false;
|
||||
}
|
||||
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => $mermsemr->cfgReadChar("database.host"),
|
||||
'username' => $mermsemr->cfgReadChar("database.user"),
|
||||
'password' => $mermsemr->cfgReadChar("database.pass"),
|
||||
'database' => $mermsemr->cfgReadChar("database.name"),
|
||||
'dbdriver' => 'postgre',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
'db_debug' => $show_database_error,
|
||||
'db_debug2' => (ENVIRONMENT !== 'production'),
|
||||
'cache_on' => FALSE,
|
||||
'cachedir' => '',
|
||||
'char_set' => 'utf8',
|
||||
'dbcollat' => 'utf8_general_ci',
|
||||
'swap_pre' => '',
|
||||
'encrypt' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'stricton' => FALSE,
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
|
||||
|
||||
$db['default_out'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => '',
|
||||
|
||||
Reference in New Issue
Block a user