]> git.mxchange.org Git - mailer.git/blobdiff - index.php
Some rewrites
[mailer.git] / index.php
index aed7b1e9c5aae036b64c9211ca9c2db32c9b7742..4f2b720262c8a11511b26d458a842dd6c948e512 100644 (file)
--- a/index.php
+++ b/index.php
 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)) {