* @version 0.1 * @category Systems Administration * @author warhawk3407 <*****@*****.**> @NOSPAM * @copyright Copyleft 2015, Nikita Rousseau * @license GNU General Public License version 3.0 (GPLv3) * @link http://www.bgpanel.net/ */ /** * Load Plugin */ require MODS_DIR . '/' . basename(__DIR__) . '/login.class.php'; $module = new BGP_Module_Login(); /** * Call GUI Builder */ $gui = new Core_GUI($module); /** * Javascript Generator */ $js = new Core_GUI_JS($module); /** * Build Page Header */ $gui->getHeader(); /** * PAGE BODY */ //------------------------------------------------------------------------------------------------------------+ // Call security component $authService = Core_AuthService::getAuthService(); if ($authService->isBanned()) {
* @version 0.1 * @category Systems Administration * @author warhawk3407 <*****@*****.**> @NOSPAM * @copyright Copyleft 2015, Nikita Rousseau * @license GNU General Public License version 3.0 (GPLv3) * @link http://www.bgpanel.net/ */ /** * Load Plugin */ require MODS_DIR . '/' . basename(__DIR__) . '/config.class.php'; $module = new BGP_Module_Config(); /** * Call GUI Builder */ $gui = new Core_GUI($module); /** * Javascript Generator */ $js = new Core_GUI_JS($module); /** * Build Page Header */ $gui->getHeader(); /** * Build Page Tabs */ $gui->getTabs('general'); // Get templates $templates = parse_ini_file(CONF_TEMPLATES_INI); // Get current config from database
* @version 0.1 * @category Systems Administration * @author warhawk3407 <*****@*****.**> @NOSPAM * @copyright Copyleft 2015, Nikita Rousseau * @license GNU General Public License version 3.0 (GPLv3) * @link http://www.bgpanel.net/ */ /** * Load Plugin */ require MODS_DIR . '/' . basename(__DIR__) . '/myaccount.class.php'; $module = new BGP_Module_Myaccount(); /** * Call GUI Builder */ $gui = new Core_GUI($module); /** * Javascript Generator */ $js = new Core_GUI_JS($module); /** * Build Page Header */ $gui->getHeader(); /** * Build Page Tabs */ $gui->getTabs('profile'); // Get languages $languages = parse_ini_file(CONF_LANG_INI); // Get templates
/** * Display Module Header * * @param none * @return String * @access public */ public function getHeader() { //------------------------------------------------------------------------------------------------------------+ ?> <!DOCTYPE html> <html ng-app lang="<?php // Language if (isset($_SESSION['LANG'])) { echo htmlspecialchars(substr($_SESSION['LANG'], 0, 2), ENT_QUOTES); } else { echo htmlspecialchars(substr(CONF_DEFAULT_LOCALE, 0, 2), ENT_QUOTES); } ?> "> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Powered By Bright Game Panel --> <title><?php // Tab Title echo htmlspecialchars($this->module_title . ' - ' . BGP_PANEL_NAME, ENT_QUOTES); ?> </title> <base href="<?php echo BASE_URL; ?> "> <!-- Style --> <!-- Bootstrap 3 --> <link href="./gui/bootstrap3/css/<?php echo htmlspecialchars(Core_GUI::getBS3Template(), ENT_QUOTES); ?> " rel="stylesheet"> <!-- MetisMenu --> <link href="./gui/metisMenu/css/metisMenu.min.css" rel="stylesheet"> <!-- Font Awesome 4 --> <link href="./gui/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href="./gui/font-awesome/css/font-awesome-animation.min.css" rel="stylesheet"> <!-- DataTables --> <link href="./gui/datatables/css/dataTables.bootstrap.css" rel="stylesheet"> <!-- SB Admin 2 --> <link href="./gui/bootstrap3/css/dashboard.css" rel="stylesheet"> <?php //------------------------------------------------------------------------------------------------------------+ // Load CSS Dependencies echo $this->getCSSDepends(); //------------------------------------------------------------------------------------------------------------+ ?> <!-- Javascript --> <script src="./gui/angularjs/js/angular.min.js"></script> <script src="./gui/jquery/js/jquery.min.js"></script> <script src="./gui/bootstrap3/js/bootstrap.min.js"></script> <!-- API-Check (angular.formly Requirement) --> <script src="./gui/api-check/js/api-check.min.js"></script> <!-- Angular Formly --> <script src="./gui/angularjs/js/angular.formly.min.js"></script> <script src="./gui/angularjs/js/angular.formly-templates-bootstrap.min.js"></script> <!-- Metis Menu Plugin --> <script src="./gui/metisMenu/js/metisMenu.min.js"></script> <!-- DataTables --> <script src="./gui/datatables/js/jquery.dataTables.js"></script> <script src="./gui/datatables/js/dataTables.bootstrap.js"></script> <!-- SB Admin 2 --> <script src="./gui/bootstrap3/js/sb-admin-2.js"></script> <?php //------------------------------------------------------------------------------------------------------------+ // Load JS Dependencies echo $this->getJSDepends(); //------------------------------------------------------------------------------------------------------------+ ?> <!-- Favicon --> <link rel="icon" href="./gui/img/favicon.ico"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body ng-controller="bgpController"> <div id="wrapper"> <!-- NAVIGATION --> <nav class="navbar navbar-default navbar-static-top" role="navigation"> <?php //------------------------------------------------------------------------------------------------------------+ // Display Navigation Bar echo $this->getNavBar(); //------------------------------------------------------------------------------------------------------------+ ?> <?php //------------------------------------------------------------------------------------------------------------+ // Display Sidebar if (!$this->no_sidebar) { echo $this->getSideBar(); } //------------------------------------------------------------------------------------------------------------+ ?> </nav> <!-- END: NAVIGATION --> <!-- Page Content --> <div id="page-wrapper"> <div class="row"> <!-- MAIN --> <div class="col-lg-12"> <?php //------------------------------------------------------------------------------------------------------------+ // Page Header // Title if (!empty($this->parent_module_title)) { //------------------------------------------------------------------------------------------------------------+ ?> <h1 class="page-header"> <i class="<?php echo htmlspecialchars($this->module_icon, ENT_QUOTES); ?> "></i> <?php echo htmlspecialchars($this->parent_module_title, ENT_QUOTES); ?> <i class="fa fa-angle-right"></i> <small><?php echo htmlspecialchars($this->module_title, ENT_QUOTES); ?> </small> </h1> <?php //------------------------------------------------------------------------------------------------------------+ } else { //------------------------------------------------------------------------------------------------------------+ ?> <h1 class="page-header"><i class="<?php echo htmlspecialchars($this->module_icon, ENT_QUOTES); ?> "></i> <?php echo htmlspecialchars($this->module_title, ENT_QUOTES); ?> </h1> <?php //------------------------------------------------------------------------------------------------------------+ } //------------------------------------------------------------------------------------------------------------+ ?> <!-- ALERTS --> <div id="msg" class="alert alert-dismissible" role="alert" ng-show="msg" ng-class="'alert-' + msgType"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <strong ng-bind="msg"></strong> </div> <?php //------------------------------------------------------------------------------------------------------------+ /** * Alerts Handler */ if (!empty($_SESSION['ALERT']) && !empty($_SESSION['ALERT']['MSG-TYPE'])) { //------------------------------------------------------------------------------------------------------------+ ?> <div id="alert" class="alert alert-dismissible alert-<?php echo htmlspecialchars($_SESSION['ALERT']['MSG-TYPE'], ENT_QUOTES); ?> " role="alert"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <?php //------------------------------------------------------------------------------------------------------------+ if (!empty($_SESSION['ALERT']['MSG-STRONG'])) { //------------------------------------------------------------------------------------------------------------+ ?> <strong><?php echo htmlspecialchars($_SESSION['ALERT']['MSG-STRONG'], ENT_QUOTES); ?> </strong> <?php //------------------------------------------------------------------------------------------------------------+ } if (!empty($_SESSION['ALERT']['MSG-BODY'])) { //------------------------------------------------------------------------------------------------------------+ ?> <?php echo htmlspecialchars($_SESSION['ALERT']['MSG-BODY'], ENT_QUOTES); //------------------------------------------------------------------------------------------------------------+ } //------------------------------------------------------------------------------------------------------------+ ?> </div> <?php //------------------------------------------------------------------------------------------------------------+ unset($_SESSION['ALERT']); } //------------------------------------------------------------------------------------------------------------+ ?> <!-- END: ALERTS --> <?php //------------------------------------------------------------------------------------------------------------+ }
* @version 0.1 * @category Systems Administration * @author warhawk3407 <*****@*****.**> @NOSPAM * @copyright Copyleft 2015, Nikita Rousseau * @license GNU General Public License version 3.0 (GPLv3) * @link http://www.bgpanel.net/ */ /** * Load Plugin */ require MODS_DIR . '/' . basename(__DIR__) . '/myaccount.class.php'; $module = new BGP_Module_Myaccount(); /** * Call GUI Builder */ $gui = new Core_GUI($module); /** * Javascript Generator */ $js = new Core_GUI_JS($module); /** * Build Page Header */ $gui->getHeader(); /** * Build Page Tabs */ $gui->getTabs('profile'); // Get languages $languages = parse_ini_file(CONF_LANG_INI); // Get profile settings from database