$filterArray['chains'][$filterName][$filterFunction] = $GLOBALS['cache_array']['filter']['filter_active'][$idx];
} // END - foreach
- // Mark filters as loaded
- $GLOBALS['cache_array']['filter'] = true;
-
// Remove the cache
$GLOBALS['cache_array']['filter'] = $filterArray;
} elseif ((!isInstallationPhase()) && (isExtensionInstalledAndNewer('sql_patches', '0.5.9'))) {
$eval = '$ret = "' . compileCode(smartAddSlashes($GLOBALS['tpl_content'])) . '";';
}
} else {
- // Simply return loaded code
- $eval = '$ret = $GLOBALS[\'tpl_content\'];';
+ // Add surrounding HTML comments to help finding bugs faster
+ $ret = "<!-- Template " . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . "<!-- Template " . $template . " - End -->\n";
+ $eval = '$ret = "' . smartAddSlashes($ret) . '";';
} // END - if
// Cache the eval() command here
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} // END - if
+} elseif (isBlockModeEnabled()) {
+ // Block mode detected
+ return;
+}
// Add description as navigation point
addMenuDescription('guest', __FILE__);
if ((!isExtensionActive('')) && (!isAdmin())) {
loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage(''));
return;
-} elseif (isBlockModeEnabled()) {
- // Block mode detected
- return;
}
// Load the include file
return;
}
+// Add description as navigation point
+addMenuDescription('guest', __FILE__);
+
// Only when one admin link is clicked...
$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
if (isIncludeReadable($inc)) {
} elseif ((!isExtensionActive('online')) && (!isAdmin())) {
// Just skip this extension
return;
+} elseif (!isBlockModeEnabled()) {
+ // Block mode detected
+ return;
}
// Total visitors online
return;
}
-// Add description as navigation point
-addMenuDescription('guest', __FILE__);
-
// Load the include file
$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
if (isIncludeReadable($inc)) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} // END - if
-
-// Add description as navigation point
-addMenuDescription('guest', __FILE__);
+} elseif (!isBlockModeEnabled()) {
+ // Block mode detected
+ return;
+}
if ((!isExtensionActive('theme')) && (!isAdmin())) {
loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
$num_themes = countSumTotalData('', 'themes', 'id', '', true);
}
+$OUT = '';
if ($num_themes > 1) {
// If more than 1 is installed output selection box
$OUT = generateThemeSelectionBox();
enableBlockMode();
// Load menu block
- $inc_BLOCK = sprintf("inc/modules/%s/action-%s.php", $mode, $content['action']);
- if (isFileReadable($inc_BLOCK)) {
+ $INC = sprintf("inc/modules/%s/action-%s.php", $mode, $content['action']);
+ if (isFileReadable($INC)) {
// Load include file
if ((!isExtensionActive($content['action'])) || ($content['action'] == 'online')) $GLOBALS['rows'] .= loadTemplate('menu_what_begin', true, $mode);
- //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.$content['sub_what'].':'.getWhat()."*<br />");
- loadInclude($inc_BLOCK);
- //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.$content['sub_what'].':'.getWhat()."*<br />");
- if ((!isExtensionActive($content['action'])) || ($content['action'] == 'online')) $GLOBALS['rows'] .= loadTemplate('menu_what_end', true);
+ //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.getWhat()."*<br />");
+ loadInclude($INC);
+ //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.getWhat()."*<br />");
+ if ((!isExtensionActive($content['action'])) || ($content['action'] == 'online')) $GLOBALS['rows'] .= loadTemplate('menu_what_end', true, $mode);
}
//* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.$content['sub_what'].':'.getWhat()."*<br />");
}
$main_cnt++;
- //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.'/'.$content['action'].'/'.$content['sub_what'].':'.getWhat()."*<br />");
+ //* DEBUG: */ outputHtml(__LINE__.'/'.$main_cnt.':'.getWhat()."*<br />");
if (SQL_NUMROWS($result_main) > $main_cnt) {
// Add seperator
$GLOBALS['rows'] .= loadTemplate('menu_seperator', true, $mode);