-if (defined('frameset_active')) {
- // Initialize variables
- $header = ""; $FOOTER = "";
- if (empty($GLOBALS['what'])) $GLOBALS['what'] = "";
- if (($header != "1") && ($header != "2")) {
- // If not in CSS mode generate the header
- if (($CSS != "1")) {
- // Generate header
- $TITLE = "";
-
- // Add title decorations? (left)
- if ((!empty($CONFIG)) && (isset($link)) && (isset($db))) {
- if (($CONFIG['title_decoration'] == 'Y') && (trim(!empty($CONFIG['title_left'])))) $TITLE .= trim($CONFIG['title_left'])." ";
+// Initialize variables
+if (!isset($header)) $header = 0;
+
+if (($header != "1") && ($header != "2")) {
+ // If not in CSS mode generate the header
+ if (($CSS != "1")) {
+ // Generate header
+ $TITLE = "";
+
+ // Add title decorations? (left)
+ if (!defined('__PAGE_TITLE')) {
+ // Config and database connection valid?
+ if ((isset($_CONFIG)) && (is_array($_CONFIG)) && (count($_CONFIG) > 1) && (is_resource($link)) && (isset($db))) {
+ // Title decoration enabled?
+ if (($_CONFIG['enable_title_deco'] == "Y") && (!empty($_CONFIG['title_left']))) $TITLE .= trim($_CONFIG['title_left'])." ";
+
+ // Do we have some extra title?
+ if (!empty($EXTRA_TITLE)) {
+ // Then prepent it
+ $TITLE .= $EXTRA_TITLE." by ";
+ } // END - if
+
+ // Add main title