function BB_ProcessPage($retcache, $dumpcache, $easyedit) { global $bb_page, $bb_langpage, $bb_doctypes, $bb_mode, $bb_css, $bb_js, $bb_use_premainjs, $bb_paths; $bb_mode = "prehtml"; BB_ProcessMasterWidget("root"); $result = ""; if ($retcache) { ob_start(); } echo $bb_doctypes[$bb_page["doctype"]]; echo "<head>\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; if ($bb_langpage["title"] != "") { echo "<title>" . htmlspecialchars($bb_langpage["title"]) . "</title>\n"; } if ($bb_langpage["metadesc"] != "") { echo "<meta name=\"description\" content=\"" . htmlspecialchars($bb_langpage["metadesc"]) . "\" />\n"; } if ($bb_page["metarobots"] != "") { echo "<meta name=\"robots\" content=\"" . htmlspecialchars($bb_page["metarobots"]) . "\" />\n"; } if (defined("BB_MODE_EDIT")) { echo "<base target=\"_top\" />\n"; } $bb_css = array(); $bb_js = array(); $bb_mode = "head"; $bb_use_premainjs = false; BB_ProcessMasterWidget("root"); foreach ($bb_css as $url => $path) { echo "<link rel=\"stylesheet\" href=\"" . htmlspecialchars($url) . "\" type=\"text/css\" media=\"" . (is_array($path) ? htmlspecialchars($path[1]) : "all") . "\" />\n"; } if ($bb_use_premainjs && function_exists("BB_PreMainJS")) { BB_PreMainJS(); } foreach ($bb_js as $url => $path) { echo "<script type=\"text/javascript\" src=\"" . htmlspecialchars($url) . "\"></script>\n"; } echo "</head>\n"; echo "<body>\n"; if ($bb_page["easyedit"] && $easyedit) { echo "<script type=\"text/javascript\" src=\"" . htmlspecialchars(isset($bb_paths) ? $bb_paths["ROOT_URL"] . "/" . $bb_paths["SUPPORT_PATH"] : ROOT_URL . "/" . SUPPORT_PATH) . "/js/easyedit.js\"></script>\n"; } if ($retcache) { $result .= ob_get_contents(); if ($dumpcache) { ob_end_flush(); } else { ob_end_clean(); } ob_start(); } $bb_mode = "body"; BB_ProcessMasterWidget("root"); if ($retcache) { $result .= ob_get_contents(); if ($dumpcache) { ob_end_flush(); } else { ob_end_clean(); } ob_start(); } $bb_mode = "foot"; BB_ProcessMasterWidget("root"); echo "</body>\n"; echo "</html>\n"; if ($retcache) { $result .= ob_get_contents(); if ($dumpcache) { ob_end_flush(); } else { ob_end_clean(); } } return $result; }
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo BB_Translate("Loading..."); ?> </title> <link rel="stylesheet" href="<?php echo htmlspecialchars(ROOT_URL); ?> /<?php echo htmlspecialchars(SUPPORT_PATH); ?> /css/mainedit.css" type="text/css" media="all" /> <?php BB_PreMainJS(); ?> <script type="text/javascript"> var Gx__PageInfo = { 'menu_token' : '<?php echo BB_JSSafe(BB_CreateSecurityToken("bb_main_edit_menu")); ?> ', 'mainviewinfo_token' : '<?php echo BB_JSSafe(BB_CreateSecurityToken("bb_main_edit_mainviewinfo")); ?> ', 'mainviewinfo_notify' : <?php echo isset($_REQUEST["notify"]) ? (int) $_REQUEST["notify"] : -1; ?> ,