require_once $extension . $pathFile; $db = new Database_Site(); $db->doSuppressErrors(); $db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); $sql = "CREATE DATABASE /*!32312 IF NOT EXISTS*/ " . SITE_DB_NAME; $db->runSQL($sql); $sql = "USE " . SITE_DB_NAME; $db->runSQL($sql); /* * Modules Table * * Setup the Page Modules Table. */ $module = new RowManager_siteModuleManager(); $module->dropTable(); $module->createTable(); // Initialize Login Page Module $module->setKey(PAGE_MODULE_LOGIN); $module->setPath(SITE_PATH_MODULES . 'site_Login/'); $module->setApplicationFile('login_app.php'); $module->setIncludeFile('login_includes.php'); $module->setName('moduleLogin'); $module->setParameters(''); $module->createNewEntry(); require $extension . SITE_PATH_MODULES . 'site_Login/login_app.php'; // Initialize Logout Page Module $module->setKey(PAGE_MODULE_LOGOUT); $module->setPath(SITE_PATH_MODULES . 'site_Login/'); $module->setApplicationFile('login_app.php'); $module->setIncludeFile('login_includes.php'); $module->setName('moduleLogin');