X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=index.php;h=4f2b720262c8a11511b26d458a842dd6c948e512;hp=aed7b1e9c5aae036b64c9211ca9c2db32c9b7742;hb=af59daf6541b279989547829c95adc5bee8ca11d;hpb=8f60465485bd5e9ab2c0ddfa1f054458cf510042 diff --git a/index.php b/index.php index aed7b1e9c5..4f2b720262 100644 --- a/index.php +++ b/index.php @@ -36,12 +36,15 @@ require("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; -$GLOBALS['what'] = ""; $GLOBALS['action'] = ""; +$GLOBALS['what'] = ""; +$GLOBALS['action'] = ""; // Set module $GLOBALS['module'] = "index"; +// Set "CSS-Mode" +$GLOBALS['output_mode'] = "0"; + // Load config.php require("inc/config.php"); @@ -51,8 +54,8 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { LOAD_INC("inc/header.php"); // Fix missing array elements here - if (getConfig('index_delay') == null) setConfigEntry('index_delay' , 0); - if (getConfig('index_cookie') == null) setConfigEntry('index_cookie', 0); + if (!isConfigEntrySet('index_delay')) setConfigEntry('index_delay' , 0); + if (!isConfigEntrySet('index_cookie')) setConfigEntry('index_cookie', 0); // Check for cookies if ((isSessionVariableSet('visited')) || (getConfig('index_delay') == 0) || (getConfig('index_cookie') == 0)) {