]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
Internal TODO closed (sry for second commit)
[mailer.git] / inc / header.php
index 45b1caa4d6963b699d8dad1468a2443a3cac7fe9..f729ec3ed0926cad6ff7ac782986fcbaf74b859f 100644 (file)
@@ -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'));