Update domains and schema classes.

This commit is contained in:
markjcrane
2016-04-14 22:10:47 -06:00
parent 6e5fe31303
commit b7d8b3c23f
2 changed files with 36 additions and 16 deletions
+10 -1
View File
@@ -33,8 +33,17 @@ include "root.php";
public $db_type;
public $result;
//get the list of installed apps from the core and mod directories
//class constructor
public function __construct() {
//connect to the database if not connected
if (!$this->db) {
require_once "resources/classes/database.php";
$database = new database;
$database->connect();
$this->db = $database->db;
}
//get the list of installed apps from the core and mod directories
$config_list = glob($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . "/*/*/app_config.php");
$x=0;
foreach ($config_list as &$config_path) {