X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=a2764b899f3b62421bb9a9fbe89e21976f28d937;hb=b72f264c4e47f8fac48596b7eeb977a3f5e56e10;hp=4079b95efebf998a938c36615ce5cec0f3b11966;hpb=0fd6858b423d41e7eee9ffa3d5138d318e08cc1c;p=mailer.git diff --git a/index.php b/index.php index 4079b95efe..a2764b899f 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ -1)) { + // Set content type + setContentType('text/html'); + + // 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 +86,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 (which will call shutdown() for us) + loadIncludeOnce('inc/footer.php'); } else { // Redirect to main page redirectToUrl('modules.php?module=index'); } -// Footer -loadIncludeOnce('inc/footer.php'); - // [EOF] ?>