X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fheader.php;h=f729ec3ed0926cad6ff7ac782986fcbaf74b859f;hb=9cfe8dd2ab2dc5b3abb38789c8819adcb797155f;hp=45b1caa4d6963b699d8dad1468a2443a3cac7fe9;hpb=a090e351c49fe021fb3064325694da03402332e0;p=mailer.git diff --git a/inc/header.php b/inc/header.php index 45b1caa4d6..f729ec3ed0 100644 --- a/inc/header.php +++ b/inc/header.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } @@ -71,10 +71,10 @@ if (($GLOBALS['header_sent'] != "1") && ($GLOBALS['header_sent'] != "2")) { if ((getConfig('enable_mod_title') == 'Y') || ((empty($GLOBALS['what'])) && (empty($GLOBALS['action']))) || ($GLOBALS['module'] == 'admin')) $TITLE .= " ".trim(getConfig('title_middle'))." ".ADD_MODULE_TITLE($GLOBALS['module']); // Add title from what file - $MODE = ''; - if ($GLOBALS['module'] == "login") $MODE = 'member'; - elseif ($GLOBALS['module'] == 'index') $MODE = 'guest'; - if ((!empty($MODE)) && (getConfig('enable_what_title') == 'Y')) $TITLE .= " ".trim(getConfig('title_middle'))." ".GET_MOD_DESCR($MODE, $GLOBALS['what']); + $mode = ''; + if ($GLOBALS['module'] == "login") $mode = 'member'; + elseif ($GLOBALS['module'] == 'index') $mode = 'guest'; + if ((!empty($mode)) && (getConfig('enable_what_title') == 'Y')) $TITLE .= " ".trim(getConfig('title_middle'))." ".GET_MOD_DESCR($mode, $GLOBALS['what']); // Add title decorations? (right) if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_right') != "")) $TITLE .= " ".trim(getConfig('title_right'));