This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-10-06 17:21:21 -04:00
parent 958e1255a8
commit 216e2dca28
151 changed files with 402 additions and 373 deletions

View File

@@ -25,10 +25,10 @@
if (defined('PATH_DB') && defined('SYS_SYS')) {
if (!file_exists(PATH_DB . SYS_SYS . '/db.php'))
throw new Exception("Could not find db.php in current workspace " . SYS_SYS);
if (!file_exists(PATH_DB . config("sys_sys") . '/db.php'))
throw new Exception("Could not find db.php in current workspace " . config("sys_sys"));
require_once(PATH_DB . SYS_SYS . '/db.php');
require_once(PATH_DB . config("sys_sys") . '/db.php');
//to do: enable for other databases
$dbType = DB_ADAPTER;
$dsn = DB_ADAPTER . '://' . DB_USER . ':' . urlencode(DB_PASS) . '@' . DB_HOST . '/' . DB_NAME;