X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=4eb0414c5d21ef465b3852fb419fbeaa8aa8c7c3;hb=f1cd2b7ae65e988f5be106f415136aaf92d60538;hp=4079b95efebf998a938c36615ce5cec0f3b11966;hpb=12a1e02835f17d62cf8f14ba4535ea05df1a0f45;p=mailer.git diff --git a/index.php b/index.php index 4079b95efe..4eb0414c5d 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ -1)) { + // Set content type + setContentType('text/html'); + + // Header + loadPageHeader(); + // Is the index page configured for redirect pr not? if (getConfig('index_cookie') > 0) { // Set cookie and remeber it for specified time @@ -78,22 +79,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) { + if (getIndexDelay() > 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'] = (getIndexDelay() * 1000 + 500); + $content['module'] = 'index'; + + // Load template + loadTemplate('index_forward', FALSE, $content); } // END - if + + // Footer (which will call doShutdown() for us) + loadPageFooter(); } else { // Redirect to main page redirectToUrl('modules.php?module=index'); } -// Footer -loadIncludeOnce('inc/footer.php'); - // [EOF] ?>