*
*/
-/*if (x($_SESSION,'sysmsg')) {
- $a->page['content'] = "<div id=\"sysmsg\" class=\"error-message\">{$_SESSION['sysmsg']}</div>\r\n"
- . ((x($a->page,'content')) ? $a->page['content'] : '');
- $_SESSION['sysmsg']="";
- unset($_SESSION['sysmsg']);
-}
-if (x($_SESSION,'sysmsg_info')) {
- $a->page['content'] = "<div id=\"sysmsg_info\" class=\"info-message\">{$_SESSION['sysmsg_info']}</div>\r\n"
- . ((x($a->page,'content')) ? $a->page['content'] : '');
- $_SESSION['sysmsg_info']="";
- unset($_SESSION['sysmsg_info']);
-}*/
-
-
-
call_hooks('page_end', $a->page['content']);
-
/**
*
* Add the navigation (menu) template
$list = $xpath->query("//*[contains(@id,'tread-wrapper-')]"); /* */
foreach ($list as $item) {
-
$item = $target->importNode($item, true);
// And then append it to the target
// to load another page template than the default one
// The page templates are located in /view/php/ or in the theme directory
if (isset($_GET["mode"])) {
- $template = theme_include($_GET["mode"].'.php');
+ $template = theme_include($_GET["mode"].'.php');
}
// If there is no page template use the default page template
require_once($template);
-if (!$a->is_backend())
+if (!$a->is_backend()) {
session_write_close();
-exit;
+}
+exit();