X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=index.php;h=f08e799a4fb042258745b32461096697504c0b88;hp=4079b95efebf998a938c36615ce5cec0f3b11966;hb=606e585919ff565b55fb3c2cdee4a80c4e61a9c6;hpb=0fd6858b423d41e7eee9ffa3d5138d318e08cc1c diff --git a/index.php b/index.php index 4079b95efe..f08e799a4f 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ -1)) { // Is the index page configured for redirect pr not? if (getConfig('index_cookie') > 0) { // Set cookie and remeber it for specified time @@ -78,14 +74,16 @@ 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 } else { // Redirect to main page