fix backend
This commit is contained in:
@@ -74,22 +74,21 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$active_group = 'default';
|
||||
$query_builder = TRUE;
|
||||
|
||||
// load back end here -----
|
||||
require_once('backend.php');
|
||||
|
||||
$show_database_error = true;
|
||||
$is_live = $wrenchboard->cfgReadChar("system.live");
|
||||
if ($is_live == false) {
|
||||
$show_database_error = false;
|
||||
}
|
||||
|
||||
$arr = array();
|
||||
$arr["host"] = "127.0.0.1";
|
||||
$arr["name"] = "wrenchboard";
|
||||
$arr["user"] = "wrenchboard";
|
||||
$arr["pass"] = "wrenchboard";
|
||||
$arr["port"] = 5432;
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => $wrenchboard->cfgReadChar("database.host"),
|
||||
'username' => $wrenchboard->cfgReadChar("database.user"),
|
||||
'password' => $wrenchboard->cfgReadChar("database.pass"),
|
||||
'database' => $wrenchboard->cfgReadChar("database.name"),
|
||||
'hostname' => $arr["host"],
|
||||
'username' => $arr["user"],
|
||||
'password' => $arr["pass"],
|
||||
'database' => $arr["name"],
|
||||
'dbdriver' => 'postgre',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
@@ -106,4 +105,3 @@ $db['default'] = array(
|
||||
'failover' => array(),
|
||||
'save_queries' => TRUE
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user