public static function dispatch() { self::defaults(); \Hooks::doAction("router.finish"); self::statusRoutes(); self::$router->dispatch(null, null, false); }
} } ?> <html> <head> <?php \Assets::css("apps-grid", "/admin/css/apps-grid.css"); \Assets::css("lobby-store", "/admin/css/lobby-store.css"); \Assets::js("lobby-store", "/admin/js/lobby-store.js"); \Hooks::doAction("admin.head.begin"); \Response::head($page_title); ?> </head> <body> <?php \Hooks::doAction("admin.body.begin"); ?> <div id="workspace"> <div class="contents"> <?php if ($appID !== null) { if ($app === false) { echo ser("404 - App Not Found", "App was not found in Lobby Store."); } else { $appImage = $app['image'] != "" ? $app['image'] : L_URL . "/includes/lib/lobby/image/blank.png"; $c = $app['category']; $sc = $app['sub_category']; ?> <h1> <?php echo Lobby::l("/admin/lobby-store.php?id={$app['id']}", $app['name']);
} else { $html .= $this->makePanelItem($item['text'], $item['href'], $id, "parent"); } } } echo $html; ?> </ul> <ul class="right"> <?php $html = ""; foreach ($panelRightItems as $id => $item) { if (count($item['subItems']) !== 0) { $html .= $this->makePanelTree($id, $item); } else { if ($item['html'] != null) { $html .= $this->makePanelItem($item['html'], "htmlContent", $id, "parent"); } else { $html .= $this->makePanelItem($item['text'], $item['href'], $id, "parent"); } } } echo $html; $this->addNotify(); ?> </ul> <?php \Hooks::doAction("panel.end"); ?> </nav>
<head> <?php if (\Lobby::status("lobby.admin")) { \Hooks::doAction("admin.head.begin"); } else { \Hooks::doAction("head.begin"); } \Response::head(); if (\Lobby::status("lobby.admin")) { \Hooks::doAction("admin.head.end"); } else { \Hooks::doAction("head.end"); } ?> </head> <body> <?php if (\Lobby::status("lobby.admin")) { \Hooks::doAction("admin.body.begin"); } else { \Hooks::doAction("body.begin"); } ?> <div id="workspace"> <?php echo \Response::getPageContent(); ?> </div> </body> </html>
$loader->setClassParameters("Lobby\\Apps", array(APPS_DIR, APPS_URL)); $loader->setClassParameters("Lobby\\UI\\Themes", array(THEMES_DIR, THEMES_URL)); $loader->processLoadedClasses(); /** * Set constants & Load Modules */ require_once L_DIR . "/includes/extra.php"; /** * These classes are not loaded by default by Composer */ $loader->loadClass("Lobby\\Require"); } catch (\Exception $e) { \Lobby::log(array("fatal", $e->getMessage())); } /** * Run not on CDN files serving */ if (!\Lobby::status("lobby.assets-serve")) { /** * Init the page setup */ require_once L_DIR . "/includes/init.php"; /** * Is Lobby Installed ? */ if (!\Lobby::$installed && !\Lobby::status("lobby.install")) { \Response::redirect("/admin/install.php"); } } \Hooks::doAction("init");
require "../load.php"; $install_step = Request::get('step'); ?> <!DOCTYPE html> <html> <head> <?php \Lobby\UI\Themes::loadTheme(); \Hooks::doAction("head.begin"); /** * Install Head */ \Assets::css("install", "/admin/css/install.css"); \Assets::js("install", "/admin/js/install.js"); \Response::head("Install"); \Hooks::doAction("head.end"); ?> </head> <body id="workspace"> <div class="contents" id="<?php $steps = array("1", "2", "3", "4"); if (in_array($install_step, $steps)) { echo "step{$install_step}"; } ?> "> <h1 style="text-align: center;"> <?php echo \Lobby::l(L_URL, "Install Lobby"); ?> </h1>