function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true) { global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx; if (!$AdminPage) { $DisplayPage = StdUserHeader($metatags); } else { $DisplayPage = AdminUserHeader($metatags); } if ($topnav) { include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx; $DisplayPage .= ShowTopNavigationBar($user, $planetrow); } if ($menu && !$AdminPage) { include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx; $DisplayPage .= ShowLeftMenu($user['authlevel']); } $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n"; if (!defined('LOGIN') && $_GET['page'] != 'galaxy') { $DisplayPage .= parsetemplate(gettemplate('footer'), $parse); } else { $DisplayPage .= "</body>\n</html>"; } if ($link) { mysql_close($link); } echo $DisplayPage; if ($user['authlevel'] == 3 && $game_config['debug'] == 1) { $debug->echo_log(); } die; }
function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true) { global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx; if (!$AdminPage) { $DisplayPage = StdUserHeader($metatags); } else { $DisplayPage = AdminUserHeader($metatags); } if ($topnav) { include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx; $DisplayPage .= ShowTopNavigationBar($user, $planetrow); } if ($menu && !$AdminPage) { include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx; $DisplayPage .= ShowLeftMenu($user); } $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n"; if (!defined('LOGIN') && $_GET['page'] != 'galaxy') { $DisplayPage .= parsetemplate(gettemplate('footer'), $parse); } if ($link) { mysql_close($link); } if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && !$AdminPage) { // Convertir a objeto dom $DisplayPage = str_get_html($DisplayPage); // Modificar div#content $content = $DisplayPage->find("div#content", 0); // Contenido debug $content->innertext .= $debug->echo_log(); } echo $DisplayPage; if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && $AdminPage) { echo "<center>"; echo $debug->echo_log(); echo "</center>"; } die; }
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false, $isDisplayMenu = true) { global $link, $debug, $user, $planetrow, $IsUserChecked, $time_now, $config, $lang; if (!$user || !isset($user['id']) || !is_numeric($user['id'])) { $isDisplayMenu = false; $topnav = false; } // Global header $template = gettemplate('simple_header', true); $template->assign_vars(array('title' => ($title ? "{$title} - " : '') . "{$lang['sys_server']} {$config->game_name} - {$lang['sys_supernova']}", '-meta-' => $metatags)); displayP(parsetemplate($template)); // Left menu if ($isDisplayMenu) { $AdminPage = $AdminPage ? $user['authlevel'] : 0; displayP(parsetemplate(ShowLeftMenu($AdminPage))); echo '<div id="page_body">'; } else { echo '<div>'; } echo '<center>'; if ($topnav) { displayP(parsetemplate(ShowTopNavigationBar($user, $planetrow))); } displayP($page); echo '</center></div>'; // Global footer $template = gettemplate('simple_footer', true); $template->assign_vars(array('ADMIN_EMAIL' => $config->game_adminEmail, 'SERVER_TIME' => $time_now, 'SN_VERSION' => SN_VERSION)); displayP(parsetemplate($template)); sys_log_hit(); // Affichage du Debug si necessaire if ($user['authlevel'] == 3 && $config->debug) { $debug->echo_log(); } if (isset($link)) { mysql_close(); } die; }
$parse['source_link'] = ""; } // Show Donations Link if ($game_config['enable_donate'] == 1 && $game_config['enable_source'] != 1) { $parse['donate_link'] = "\r\r\n\t\t<tr>\r\r\n\t\t\t<td colspan=\"2\"><div align=\"center\"><a href=\"donate.php\" target=\"Hauptframe\">Donate</a></div></td>\r\r\n\t\t</tr>"; } elseif ($game_config['enable_donate'] == 1 && $game_config['enable_source'] == 1) { $parse['donate_link'] = "\r\r\n\t\t\t<th width=\"49%\"><a href=\"donate.php\" target=\"Hauptframe\">Donate</a></th>\r\r\n\t\t</tr>"; } else { $parse['donate_link'] = ""; } // Show Adsense Ad if ($adsense_config['leftmenu_on'] == 1) { $parse['leftmenu_script'] = "<div>" . $adsense_config['leftmenu_script'] . "</div>"; } else { $parse['leftmenu_script'] = ""; } $parse['servername'] = $game_config['game_name']; $Menu = parsetemplate($MenuTPL, $parse); return $Menu; } $Menu = ShowLeftMenu($user['authlevel']); display($Menu, "Menu", '', false); /****************************************************************************************** ** Revision Notes ** ** @ Official OasisRage 2.0 release - May 2009 - darkOasis ** ** @ (please note any changes you make to the source code) ** ** @ ** ** ** ******************************************************************************************/ ?>
function displaypage($page, $title = '', $body = '', $scripts = '') { //global $link, $game_config, $debug, $user, $planetrow; //old global $link, $InLogin, $game_config, $debug, $user, $planetrow, $cpage, $pageid, $loadstart; if ($_GET['page'] != 'admin') { include ROOT_PATH . "menu.php"; } else { include ROOT_PATH . "adminmenu.php"; } include ROOT_PATH . "planetlist.php"; $Menu = ShowLeftMenu($cpage); $Planets = ShowPlanetList(); if (defined('IN_ADMIN')) { $AdminPage = true; } if (!defined("NO_ADS") && $game_config['OverviewBanner'] == '1') { $ads = $game_config['OverviewClickBanner']; } else { $ads = ''; } $DisplayPage = GeneralHead($title); $DisplayPage .= NewHeader($pageid); $DisplayPage .= $Menu; $DisplayPage .= "\n<!--Start axah bit -->\n<div id=\"axah\">\n"; $DisplayPage .= $page; $DisplayPage .= "\n<!--End axah bit -->\n</div>\n"; // Debug from origional XNova if ($user['authlevel'] >= 1) { if ($game_config['debug'] == 1) { $debug->echo_log(); } } //$DisplayPage .= RightMenu(); $DisplayPage .= $Planets; $DisplayPage .= GeneralFoot(); if (isset($link)) { mysql_close(); } die(AddUniToLinks($DisplayPage)); }
function display($page, $title = '', $topnav = true, $metatags = '', $AdminPage = false, $Installer = false) { global $link, $game_config, $debug, $user, $planetrow; $title = $game_config['game_name'] . " " . $title; if ($Installer) { $DisplayPage = InstallerHeader($title, $metatags); } elseif (!$AdminPage) { $DisplayPage = StdUserHeader($title, $metatags); } else { $DisplayPage = AdminUserHeader($title, $metatags); } include XNOVA_ROOT_PATH . 'pages/leftmenu.php'; include XNOVA_ROOT_PATH . 'pages/admin/leftmenu.php'; if (!defined('LEFTMENU_NICHT_ANZEIGEN')) { $DisplayPage .= ShowLeftMenu($user['authlevel']); } if (defined('ADMINMENU_ANZEIGEN')) { $DisplayPage .= ShowAdminMenu($user['authlevel']); } if (!defined('KEIN_SCROLLDIV')) { $DisplayPage .= "<div class=\"scrolldiv\">"; } if ($topnav) { if ($user['aktywnosc'] == 1) { $urlaub_act_time = $user['time_aktyw']; $act_datum = date("d.m.Y", $urlaub_act_time); $act_uhrzeit = date("H:i:s", $urlaub_act_time); $DisplayPage .= "Le mode del dure jusque {$act_datum} {$act_uhrzeit}<br>\tCe n'est qu'après cette période que vous pouvez changer vos options."; } if ($user['db_deaktjava'] == 1) { $urlaub_del_time = $user['deltime']; $del_datum = date("d.m.Y", $urlaub_del_time); $del_uhrzeit = date("h:i:s", $urlaub_del_time); $DisplayPage .= "Account Löschung aktiviert!<br>Ihr Account wird am {$del_datum} {$del_uhrzeit} Geöscht!."; } $DisplayPage .= ShowTopNavigationBar($user, $planetrow); } // Affichage du Debug si necessaire if ($user['authlevel'] == 1 || $user['authlevel'] == 3) { if ($game_config['debug'] == 1) { $debug->echo_log(); } } if (isset($link)) { mysql_close(); } //$DisplayPage .= "<center>\n". $page ."\n</center>\n"; $DisplayPage .= "{$page}</div>"; //<center> muss manuell in jeder tpl gesetzt werden $DisplayPage .= StdFooter(); echo $DisplayPage; die; }
function display($page, $topnav = true, $metatags = '', $AdminPage = false, $menu = true) { global $link, $game_config, $debug, $user, $planetrow, $xgp_root, $phpEx, $ToolTips; if (!$AdminPage) { $DisplayPage = StdUserHeader($metatags); } else { $DisplayPage = AdminUserHeader($metatags); } if ($topnav) { include_once $xgp_root . 'includes/functions/ShowTopNavigationBar.' . $phpEx; $DisplayPage .= ShowTopNavigationBar($user, $planetrow); } if ($menu && !$AdminPage) { include_once $xgp_root . 'includes/functions/ShowLeftMenu.' . $phpEx; $DisplayPage .= ShowLeftMenu($user['authlevel']); } $DisplayPage .= "\n<center>\n" . $page . "\n</center>\n"; if (!defined('LOGIN')) { $parse['tooltips'] = $ToolTips; } $DisplayPage .= parsetemplate(gettemplate('footer'), $parse); if ($link) { mysql_close($link); } // Convertir a objeto dom $DisplayPage = str_get_html($DisplayPage); // Modificar div#content $content = $DisplayPage->find("div#content", 0); if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && !$AdminPage) { $content->innertext .= $debug->echo_log(); } if (PHPIDS_IMPACT >= 10) { $content->innertext = "Se han detectado datos posiblemente malignos. Han sido filtrados por tu seguridad.<br/>" . $content->innertext; } if ((!defined("LOGIN") or LOGIN == false) and !$AdminPage) { // Contenido debug $content->innertext = ADVERTISEMENT . $content->innertext; $content->innertext .= '<div style="margin-top:15px;width:100%;text-align:center;">© 2008-' . date("Y") . ' XG Proyect <br>Under GNU General Public License</div>'; } echo $DisplayPage; if ($user['authlevel'] == 3 && $game_config['debug'] == 1 && $AdminPage) { echo "<center>"; echo $debug->echo_log(); echo "</center>"; } die; }