X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=index.php;h=f4c8ab5e9a1811a14a23081031c2152e2c057fe4;hp=9142d90b424af8d7cca30c3472d5211e43c28302;hb=fad1ea280c27f9ba8ae818b87b0ba29d2c113b1b;hpb=84317e249885eb03a99f2946acf285ff27d506ac diff --git a/index.php b/index.php index 9142d90b42..f4c8ab5e9a 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,12 @@ * Kurzbeschreibung : Index-Seite. Eine simple Weiterleitung auf die * * modules.php * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -36,23 +41,26 @@ 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"); // Is the script installed? -if (isBooleanConstantAndTrue('mxchange_installed')) { +if (isInstalled()) { // Header LOAD_INC("inc/header.php"); // Fix missing array elements here - if (getConfig('index_delay') == null) $_CONFIG['index_delay'] = 0; - if (getConfig('index_cookie') == null) $_CONFIG['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)) { @@ -74,7 +82,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { define('__DELAY_VALUE', (getConfig('index_delay') * 1000 + 500)); define('__MOD_VALUE' , ADD_URL_DATA("index")); LOAD_TEMPLATE("index_forward"); - } + } // END - if } else { // Redirect to main page LOAD_URL("modules.php?module=index"); @@ -88,4 +96,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { } // All done here... +shutdown(); + +// ?>