// Add title decorations? (left)
if (!defined('__PAGE_TITLE')) {
// Config and database connection valid?
- if ((isConfigLoaded()) && (SQL_IS_LINK_UP())) {
+ if ((isConfigLocalLoaded()) && (isConfigLoaded()) && (SQL_IS_LINK_UP())) {
// Title decoration enabled?
if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_left') != '')) $TITLE .= trim(getConfig('title_left'))." ";
// Add title from what file
$mode = '';
if ($GLOBALS['module'] == "login") $mode = 'member';
- elseif ($GLOBALS['module'] == 'index') $mode = 'guest';
+ elseif ($GLOBALS['module'] == 'index') $mode = 'guest';
if ((!empty($mode)) && (getConfig('enable_what_title') == 'Y')) $TITLE .= " ".trim(getConfig('title_middle'))." ".getModuleDescription($mode, $GLOBALS['what']);
// Add title decorations? (right)
} // END - if
// Load body or not
-if (($GLOBALS['module'] != 'frametester') || (($GLOBALS['module'] == 'frametester') && (REQUEST_ISSET_GET(('frame')))) || (($GLOBALS['header_sent'] == '1') && (REQUEST_ISSET_GET(('frame')))) && ($GLOBALS['output_mode'] != '1')) {
+if (($GLOBALS['module'] != 'frametester') || (($GLOBALS['module'] == 'frametester') && (REQUEST_ISSET_GET('frame'))) || (($GLOBALS['header_sent'] == '1') && (REQUEST_ISSET_GET('frame'))) && ($GLOBALS['output_mode'] != '1')) {
// Is the header sent and the script is not the mail confirmation script and not a CSS?
if (($GLOBALS['header_sent'] == '1') && (basename($_SERVER['PHP_SELF']) != 'mailid.php') && ($GLOBALS['output_mode'] != '1')) {
// Add BODY tag