From 247093090256d3a9af7e0788772aa88297f06059 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 23 Mar 2017 23:01:04 +0100 Subject: [PATCH] Continued #3254: - thrown out old lost-code - add curly braces (not curely ;-) ) and spaces - exit is not a keyword, it is a function, so use () here Signed-off-by: Roland Haeder --- index.php | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/index.php b/index.php index d3310ba1aa..326d8dc2fd 100644 --- a/index.php +++ b/index.php @@ -417,24 +417,8 @@ if (stristr( implode("",$_SESSION['sysmsg']), t('Permission denied'))) { * */ -/*if (x($_SESSION,'sysmsg')) { - $a->page['content'] = "
{$_SESSION['sysmsg']}
\r\n" - . ((x($a->page,'content')) ? $a->page['content'] : ''); - $_SESSION['sysmsg']=""; - unset($_SESSION['sysmsg']); -} -if (x($_SESSION,'sysmsg_info')) { - $a->page['content'] = "
{$_SESSION['sysmsg_info']}
\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 @@ -489,7 +473,6 @@ if (isset($_GET["mode"]) AND (($_GET["mode"] == "raw") OR ($_GET["mode"] == "min $list = $xpath->query("//*[contains(@id,'tread-wrapper-')]"); /* */ foreach ($list as $item) { - $item = $target->importNode($item, true); // And then append it to the target @@ -520,7 +503,7 @@ header("Content-type: text/html; charset=utf-8"); // 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 @@ -530,6 +513,7 @@ if (!$template) { require_once($template); -if (!$a->is_backend()) +if (!$a->is_backend()) { session_write_close(); -exit; +} +exit();