X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=index.php;h=908248463154aad6ef397e0d143bf3827379afbb;hp=e13c8536ac0a912c6ce8b2efa008e3dc7a012a37;hb=60403e95910ee466e0ef685b068facb88237721f;hpb=2ec9007220186d54f84846871ed1f7638c29baf7 diff --git a/index.php b/index.php index e13c8536ac..9082484631 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ -1)) { + // Header + loadIncludeOnce('inc/header.php'); + // Is the index page configured for redirect pr not? if (getConfig('index_cookie') > 0) { // Set cookie and remeber it for specified time @@ -77,22 +74,24 @@ if ((isSessionVariableSet('visited')) || (getConfig('index_delay') == 0) || (get } // Template laden - LOAD_TEMPLATE('index'); + loadTemplate('index'); // Shall I insert an automated forward? if (getConfig('index_delay') > 0) { // This will be a JavaScript-redirect! - define('__DELAY_VALUE', (getConfig('index_delay') * 1000 + 500)); - define('__MOD_VALUE' , 'index'); - LOAD_TEMPLATE('index_forward'); + $content['delay'] = (getConfig('index_delay') * 1000 + 500); + $content['module'] = 'index'; + + // Load template + loadTemplate('index_forward', false, $content); } // END - if + + // Footer + loadIncludeOnce('inc/footer.php'); } else { // Redirect to main page redirectToUrl('modules.php?module=index'); } -// Footer -loadIncludeOnce('inc/footer.php'); - // [EOF] ?>