X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=index.php;h=df23da6814c7eb4e87303f571dbbab9fb274e48d;hp=4079b95efebf998a938c36615ce5cec0f3b11966;hb=b92c724ca8e026edf554406d1e5e84f6a0b9eda8;hpb=0fd6858b423d41e7eee9ffa3d5138d318e08cc1c diff --git a/index.php b/index.php index 4079b95efe..df23da6814 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 @@ -78,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['mod'] = '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] ?>