// Is the cache file not yet rebuilt?
if ((!isset($this->rebuilt[$this->name])) && ($this->isCacheReadable())) {
// Only run in regular output mode
- if ((getOutputMode() != 0) && ($force === false)) {
+ if ((getScriptOutputMode() != 0) && ($force === false)) {
// Debug message if allowed
if (isDebugModeEnabled()) {
// Debug message
- logDebugMessage(__METHOD__, __LINE__, 'Not removing cache ' . $this->name . ' in output_mode=' . getOutputMode());
+ logDebugMessage(__METHOD__, __LINE__, 'Not removing cache ' . $this->name . ' in output_mode=' . getScriptOutputMode());
} // END - if
// Abort here
// Update config entries
function updateConfiguration ($entries, $values, $updateMode='', $config = '0') {
// Do not update config in CSS mode
- if ((getOutputMode() == 1) || (getOutputMode() == -1) || (isInstallationPhase())) {
+ if ((getScriptOutputMode() == 1) || (getScriptOutputMode() == -1) || (isInstallationPhase())) {
return;
} // END - if
incrementConfigEntry('sql_count');
// Debug output
- if ((getOutputMode() != 1) && (isDebugModeEnabled()) && (isSqlDebuggingEnabled())) {
+ if ((getScriptOutputMode() != 1) && (isDebugModeEnabled()) && (isSqlDebuggingEnabled())) {
//
// Debugging stuff...
//
// Download functions file
loadIncludeOnce($funcsInclude);
} // END - if
- } elseif ((!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name])) && (isDebugModeEnabled()) && (getOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme') && (getExtensionMode() == 'test')) {
+ } elseif ((!isset($GLOBALS['cache_array']['extension']['ext_func'][$ext_name])) && (isDebugModeEnabled()) && (getScriptOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme') && (getExtensionMode() == 'test')) {
// No functions file is not so good...
logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no own functions file or we cannot read from it. mode=%s",
$ext_name,
// Count cache hits
incrementStatsEntry('cache_hits');
- } elseif ((!isCacheInstanceValid()) || (isset($GLOBALS['cache_array']['extension'])) || (getOutputMode() != 0)) {
+ } elseif ((!isCacheInstanceValid()) || (isset($GLOBALS['cache_array']['extension'])) || (getScriptOutputMode() != 0)) {
// Load from database
$result = SQL_QUERY_ESC("SELECT `ext_version` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_name`='%s' LIMIT 1",
array($ext_name), __FUNCTION__, __LINE__);
case 'init': // Do stuff when extension is initialized
// Do stuff only when not in CSS mode
// @TODO Move this code into rallye_functions.php
- if (getOutputMode() != 1) {
+ if (getScriptOutputMode() != 1) {
// Get total member count
$total = getTotalConfirmedUser();
//* DEBUG: */ debugOutput(__FUNCTION__.'['.__LINE__.']:<pre>'.print_r($matches, true).'</pre>');
// Default is from outputHtml()
- $outputMode = getOutputMode();
+ $outputMode = getScriptOutputMode();
// Some entries found?
if ((count($matches) > 0) && (count($matches[3]) > 0)) {
} // END - if
// Do we have non-HTML mode?
- if ((getOutputMode() != '0') || ($outputMode != '0')) $code = decodeEntities($code);
+ if ((getScriptOutputMode() != '0') || ($outputMode != '0')) $code = decodeEntities($code);
// Return compiled code
//* DEBUG: */ debugOutput(__FUNCTION__.'['.__LINE__.']:<pre>'.($code).'</pre>');
// Load more reset scripts
function FILTER_RUN_RESET_INCLUDES () {
// Is the reset set or old sql_patches?
- if (((!isResetModeEnabled()) || (!isExtensionInstalled('sql_patches'))) && (getOutputMode() == '0')) {
+ if (((!isResetModeEnabled()) || (!isExtensionInstalled('sql_patches'))) && (getScriptOutputMode() == '0')) {
// Then abort here
debug_report_bug(__FUNCTION__, __LINE__, 'Cannot run reset! enabled='.intval(isResetModeEnabled()).',ext='.intval(isExtensionInstalled('sql_patches')).' Please report this bug. Thanks');
} // END - if
} // END - if
// Get all values
- if ((getOutputMode() != 1) && (getOutputMode() != -1)) {
+ if ((getScriptOutputMode() != 1) && (getScriptOutputMode() != -1)) {
// Fix module
if (!isModuleSet()) {
// Is the request element set?
if (isGetRequestParameterSet('module')) {
// Set module from request
setModule(getRequestParameter('module'));
- } elseif (getOutputMode() == '0') {
+ } elseif (getScriptOutputMode() == '0') {
// Set default module 'index'
setModule('index');
} else {
// Set default 'what' value
//* DEBUG: */ debugOutput('-' . getModule() . '/' . getWhat() . '-');
- if ((!isWhatSet()) && (!isActionSet()) && (getOutputMode() != 1) && (getOutputMode() != -1)) {
+ if ((!isWhatSet()) && (!isActionSet()) && (getScriptOutputMode() != 1) && (getScriptOutputMode() != -1)) {
if (getModule() == 'admin') {
// Set 'action' value to 'login' in admin menu
setAction(getActionFromModuleWhat(getModule(), getWhat()));
// Sends out pooled mails
function FILTER_TRIGGER_SENDING_POOL () {
// Are we in normal output mode?
- if (getOutputMode() != 0) {
+ if (getScriptOutputMode() != 0) {
// Only in normal output mode to prevent race-conditons!
} // END - if
if ((isInstallationPhase()) || (!isInstalled()) || (!isAdminRegistered()) || (!isExtensionInstalled('sql_patches'))) return;
// Shall we run the reset scripts? If a day has changed, maybe also a week/month has changed... Simple! :D
- if (((getDay(getConfig('last_update')) != getDay()) || ((isConfigEntrySet('DEBUG_RESET')) && (getConfig('DEBUG_RESET') == 'Y'))) && (!isInstallationPhase()) && (isAdminRegistered()) && (!isGetRequestParameterSet('register')) && (getOutputMode() != 1)) {
+ if (((getDay(getConfig('last_update')) != getDay()) || ((isConfigEntrySet('DEBUG_RESET')) && (getConfig('DEBUG_RESET') == 'Y'))) && (!isInstallationPhase()) && (isAdminRegistered()) && (!isGetRequestParameterSet('register')) && (getScriptOutputMode() != 1)) {
// Tell every module we are in reset-mode!
doReset();
} // END - if
// Handles fatal errors
function FILTER_HANDLE_FATAL_ERRORS () {
// Do we have errors to handle and right output mode?
- if ((!ifFatalErrorsDetected()) || (getOutputMode() != '0')) {
+ if ((!ifFatalErrorsDetected()) || (getScriptOutputMode() != '0')) {
// Abort executing here
return false;
} // END - if
function FILTER_DISPLAY_PARSING_TIME () {
// Shall we display the parsing time and number of queries?
// 1234 5 54 4 5 5 4 4 5 543 3 4432 2 33 2 2 21
- if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (getConfig('show_timings') == 'Y') && (!isGetRequestParameterSet('frame'))) || (isInstallationPhase())) && (getOutputMode() == '0') && ($GLOBALS['header_sent'] == 2)) {
+ if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (getConfig('show_timings') == 'Y') && (!isGetRequestParameterSet('frame'))) || (isInstallationPhase())) && (getScriptOutputMode() == '0') && ($GLOBALS['header_sent'] == 2)) {
// Then display it here
displayParsingTime();
} // END - if
// Footer disabled or already sent?
// 1234 5 54 45 5 5 543 3 321
-if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (getOutputMode() != 1))) {
+if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (getScriptOutputMode() != 1))) {
// Run the filter, sweet huh?
runFilterChain('page_footer');
// Determines referal id and sets it
function determineReferalId () {
// Skip this in non-html-mode and outside ref.php
- if ((getOutputMode() != 0) && (basename($_SERVER['PHP_SELF']) != 'ref.php')) return false;
+ if ((getScriptOutputMode() != 0) && (basename($_SERVER['PHP_SELF']) != 'ref.php')) return false;
// Check if refid is set
if ((isset($GLOBALS['refid'])) && ($GLOBALS['refid'] > 0)) {
// Encodes an URL for adding session id, etc.
function encodeUrl ($url, $outputMode = '0') {
// Do we have already have a PHPSESSID inside or view.php is called? Then abort here
- if ((strpos($url, session_name()) !== false) || (getOutputMode() == -3)) return $url;
+ if ((strpos($url, session_name()) !== false) || (getScriptOutputMode() == -3)) return $url;
// Do we have a valid session?
if (((!isset($GLOBALS['valid_session'])) || ($GLOBALS['valid_session'] === false) || (!isset($_COOKIE[session_name()]))) && (isSpider() === false)) {
if (strpos($url, '?') === false) {
// No question mark
$seperator = '?';
- } elseif ((getOutputMode() != '0') || ($outputMode != '0')) {
+ } elseif ((getScriptOutputMode() != '0') || ($outputMode != '0')) {
// Non-HTML mode
$seperator = '&';
}
setHttpStatus('200 OK');
// If not in CSS mode generate the header
- if (getOutputMode() != 1) {
+ if (getScriptOutputMode() != 1) {
// Prepare the header for HTML output
loadHtmlHeader();
} // END - if
} // END - if
// Add BODY tag or not?
-if ((getOutputMode() != 1) && (getOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestParameterSet('frame')))) {
+if ((getScriptOutputMode() != 1) && (getScriptOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestParameterSet('frame')))) {
loadTemplate('page_body');
$GLOBALS['header_sent'] = 2;
} // END - if
if (isLanguageIncludeReadable($ext_name)) {
// Load language file
loadLanguageInclude($ext_name);
- } elseif ((isDebugModeEnabled()) && (getOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
+ } elseif ((isDebugModeEnabled()) && (getScriptOutputMode() == '0') && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
// No language file is not so good...
logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s",
$ext_name,
// Fix it to default
$ret = 'default';
} // END - if
- } elseif ((!isInstalled()) && ((isInstalling()) || (getOutputMode() == true)) && ((isGetRequestParameterSet('theme')) || (isPostRequestParameterSet('theme')))) {
+ } elseif ((!isInstalled()) && ((isInstalling()) || (getScriptOutputMode() == true)) && ((isGetRequestParameterSet('theme')) || (isPostRequestParameterSet('theme')))) {
// Prepare filename for checking
$themeFile = sprintf("theme/%s/theme.php", getRequestParameter('theme'));
$GLOBALS['cache_instance']->removeCacheFile();
unset($GLOBALS['cache_array']['admin']);
}
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('admin_acls')) && ($GLOBALS['cache_instance']->extensionVersionMatches('admins'))) {
// Load referal system from cache
$GLOBALS['cache_array']['admin_acls'] = $GLOBALS['cache_instance']->getArrayFromCache();
- } elseif (getOutputMode() != 1) {
+ } elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
// Remove dummy array
unset($config);
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
// Remove array and mark cache as loaded
unset($EXT_POOL);
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
// Prepare the array here
prepareFilterArray();
-} elseif ((getOutputMode() != 1) && (isExtensionInstalled('sql_patches'))) {
+} elseif ((getScriptOutputMode() != 1) && (isExtensionInstalled('sql_patches'))) {
// Create cache file here
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('imprint')) && ($GLOBALS['cache_instance']->extensionVersionMatches('imprint'))) {
// Load cache
$GLOBALS['cache_array']['imprint'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file
$GLOBALS['cache_instance']->init();
} // END - foreach
} // END - foreach
unset($modArray);
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('refdepths')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
// Load referal system from cache
$GLOBALS['cache_array']['refdepths'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
if (($GLOBALS['cache_instance']->loadCacheFile('refsystem')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
// Load referal system from cache
$GLOBALS['cache_array']['refsystem'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
if ($GLOBALS['cache_instance']->loadCacheFile('revision')) {
// Load revision from cache
$GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((getOutputMode() != 1)) {
+} elseif ((getScriptOutputMode() != 1)) {
// Create cache file here
$GLOBALS['cache_instance']->init();
// Remove dummy array
unset($cache);
-} elseif (getOutputMode() != 1) {
+} elseif (getScriptOutputMode() != 1) {
// Create cache file here
$GLOBALS['cache_instance']->init();
}
// Do not execute when script is in CSS mode
-if (getOutputMode() != 0) return;
+if (getScriptOutputMode() != 0) return;
// [EOF]
?>
}
// Do not execute when script is in CSS mode
-if (getOutputMode() != 0) return;
+if (getScriptOutputMode() != 0) return;
// Create timemark from saved month
$mark = mktime(0, 0, 0, getConfig('last_month'), getDay(), getYear());
}
// Do not execute when script is in CSS mode
-if (getOutputMode() != 0) return;
+if (getScriptOutputMode() != 0) return;
// Create timemark from saved month
$mark = mktime(0, 0, 0, getConfig('last_month'), getDay(), getYear());
}
// Do not execute when script is in CSS mode
-if (getOutputMode() != 0) return;
+if (getScriptOutputMode() != 0) return;
// Initialize variables
$jackpotPoints = '0'; $userPoints = '0';
// Destroy cache here
// @TODO Rewrite this to a filter
- if ((getOutputMode() == '0') || (getOutputMode() == -1)) rebuildCache('modules', 'modules');
+ if ((getScriptOutputMode() == '0') || (getScriptOutputMode() == -1)) rebuildCache('modules', 'modules');
// And reload data
unset($GLOBALS['module_status'][$module]);
// Module not found we don't add it to the database
$ret = '404';
}
- } elseif (($ret == 'cache_miss') && (getOutputMode() == '0')) {
+ } elseif (($ret == 'cache_miss') && (getScriptOutputMode() == '0')) {
// Rebuild the cache files
rebuildCache('modules', 'modules');
} elseif ($found === false) {
$data['hidden'],
$data['mem_only'],
$data['admin_only'],
- getOutputMode()
+ getScriptOutputMode()
));
}
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif ((!isExtensionActive('beg')) || (getConfig('beg_rallye') != 'Y')) {
$curr = getMonth();
// Check if month is done
-if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && (getOutputMode() != 1)) {
+if (($curr != getConfig('last_month')) && (getConfig('last_month') > 0) && (getConfig('beg_ranks') > 0) && (getScriptOutputMode() != 1)) {
// Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
$whereStatement1 = '';
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('bonus')) {
// Get current month (2 digits)
$curr = getMonth();
-if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && (getOutputMode() != 1)) {
+if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && (getScriptOutputMode() != 1)) {
// Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
$whereStatement1 = "WHERE `status`='CONFIRMED'";
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('newsletter')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('surfbar')) {
setConfigEntry('OUTPUT_MODE', 'direct');
// This hack prevents a backtrace in CSS output
- if (getOutputMode() == 1) {
+ if (getScriptOutputMode() == 1) {
// Problem with config so set output mode
setConfigEntry('OUTPUT_MODE', 'render');
} // END - if
runFilterChain('init');
// Are we installation routine?
- if ((!isInstalling()) && (getOutputMode() != 1) && (getOutputMode() != -1)) {
+ if ((!isInstalling()) && (getScriptOutputMode() != 1) && (getScriptOutputMode() != -1)) {
// You have to install first!
redirectToUrl('install.php');
} // END - if
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('bonus')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('autopurge')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif ((!isExtensionActive('beg')) || (getConfig('beg_rallye') == 'Y')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode
return;
} elseif (!isExtensionActive('birthday')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('bonus')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('sql_patches')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif ((!isExtensionActive('doubler')) || (getConfig('doubler_send_mode') != 'RESET')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('engine')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || ((!isResetModeEnabled()) && (getConfig('holiday_mode') == 'RESET'))) {
+} elseif ((getScriptOutputMode() != 0) || ((!isResetModeEnabled()) && (getConfig('holiday_mode') == 'RESET'))) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('holiday')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('profile')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('surfbar')) {
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('yoomedia')) {
// Unset/set session variables
function setSession ($var, $value) {
// Abort in CSS mode here
- if (getOutputMode() == 1) return true;
+ if (getScriptOutputMode() == 1) return true;
// Trim value and session variable
$var = trim(secureString($var)); $value = trim($value);
if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE');
// Output CSS files or content or link to css.php ?
-if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
+if ((getScriptOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
// Load CSS files
$stylesList = merge_array($stylesList, getExtensionCssFiles());
} // END - switch
} // END - if
} // END - foreach
-} elseif ((getOutputMode() == '0') || (getConfig('css_php') == 'INLINE')) {
+} elseif ((getScriptOutputMode() == '0') || (getConfig('css_php') == 'INLINE')) {
// Load CSS files
$stylesList = merge_array($stylesList, getExtensionCssFiles());
// Default: true
function isTemplateHtml () {
// Is the output_mode other than 0 (HTML), then no comments are enabled
- if (getOutputMode() != 0) {
+ if (getScriptOutputMode() != 0) {
// No HTML
return false;
} else {
// Do we have HTML-Code here?
if (!empty($htmlCode)) {
// Yes, so we handle it as you have configured
- switch (getCachedOutputMode()) {
+ switch (getOutputMode()) {
case 'render':
// That's why you don't need any \n at the end of your HTML code... :-)
if (getPhpCaching() == 'on') {
// Output code here, DO NOT REMOVE! ;-)
outputRawCode($GLOBALS['output']);
- } elseif ((getCachedOutputMode() == 'render') && (!empty($GLOBALS['output']))) {
+ } elseif ((getOutputMode() == 'render') && (!empty($GLOBALS['output']))) {
// Send all HTTP headers
sendHttpHeaders();
$GLOBALS['output'] = doFinalCompilation($GLOBALS['output']);
// Extension 'rewrite' installed?
- if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
+ if ((isExtensionActive('rewrite')) && (getScriptOutputMode() != 1)) {
$GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
} // END - if
$ret = '';
if ((strpos($GLOBALS['tpl_content'], '$') !== false) || (strpos($GLOBALS['tpl_content'], '{--') !== false) || (strpos($GLOBALS['tpl_content'], '{?') !== false) || (strpos($GLOBALS['tpl_content'], '{%') !== false)) {
// Normal HTML output?
- if (getOutputMode() == '0') {
+ if (getScriptOutputMode() == '0') {
// Add surrounding HTML comments to help finding bugs faster
$ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . ' - End //-->';
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() == 1) || (!isResetModeEnabled())) {
// Do not execute when script is in CSS mode or no daily reset
return;
} elseif (!isExtensionActive('surfbar')) {
$action = null;
// Is the value set?
- if (isActionSet(($strict) && (getOutputMode() == 0))) {
+ if (isActionSet(($strict) && (getScriptOutputMode() == 0))) {
// Then use it
$action = $GLOBALS['action'];
} // END - if
}
// Getter for 'output_mode' value
-function getOutputMode () {
+function getScriptOutputMode () {
// Default is null
$output_mode = null;
}
// "Getter" for output_mode
-function getCachedOutputMode () {
+function getOutputMode () {
// Do we have cache?
if (!isset($GLOBALS['cached_output_mode'])) {
// Determine it