Example #1
0
</div>';
// Load the Core Navigation Panel
require ROOT_PATH . "/parent-apps/Standard/includes/core_panel_" . ENVIRONMENT . ".php";
echo '
<div id="content-wrap">
	<div style="padding-top:60px;"></div>';
// Load the widgets contained in the "UniFactionMenu" container, if applicable
$widgetList = WidgetLoader::get("UniFactionMenu");
foreach ($widgetList as $widgetContent) {
    echo $widgetContent;
}
echo '
	<div id="viewport-wrap">';
// Draw the Left Panel
echo '
<!-- Side Panel -->
<div id="panel">';
echo '
<div id="panel-left">';
// Load the widgets contained in the "SidePanel" container
$widgetList = WidgetLoader::get("SidePanel");
foreach ($widgetList as $widgetContent) {
    echo $widgetContent;
}
echo '
</div> <!-- Panel Nav -->
</div>';
echo '
<div id="panel-right"></div>
<div id="content">' . Alert::display();
    } else {
        Alert::error("DB Admin", "The `" . $dbName . "` database does not exist, or you do not have administrative privileges.");
    }
}
// If everything is successful:
if (Validate::pass()) {
    // Check if the form was submitted (to continue to the next page)
    if (Form::submitted("install-db-connect")) {
        header("Location: /install/classes-core");
        exit;
    }
}
// Run Global Script
require dirname(ROUTE_SECOND_PATH) . "/includes/install_global.php";
// Display the Header
require HEADER_PATH;
echo Alert::display();
echo '
<form class="uniform" action="/install/config-database" method="post">' . Form::prepare("install-db-connect");
echo '
<h3>Update Your Database Configurations:</h3>
<p>Config File: ' . PUBLIC_PATH . '/index.php</p>
<p>You are working with the `<span style="font-weight:bold;">' . $dbName . '</span>` database.</p>';
if (Validate::pass()) {
    echo '
	<p><input type="submit" name="submit" value="Continue to Next Step" /></p>';
}
echo '
</form>';
// Display the Footer
require FOOTER_PATH;