From: Roland Häder Date: Sun, 9 Nov 2008 23:35:07 +0000 (+0000) Subject: Commented out for Opera fix, thanks to profi-concept. More headers added for buggy... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a84801467693b6adc9e9a984a30c79ccbc6622db;p=mailer.git Commented out for Opera fix, thanks to profi-concept. More headers added for buggy browsers --- diff --git a/inc/databases.php b/inc/databases.php index 2b16fbd6b5..4e171367b8 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "529"); +define('CURR_SVN_REVISION', "530"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 64d80b098b..c32fbdc0fa 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -142,6 +142,19 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) { // Clear output buffer for later output ob_end_clean(); + // Send HTTP header + header("HTTP/1.1 200"); + + // Used later + $now = gmdate('D, d M Y H:i:s') . ' GMT'; + + // General headers for no caching + header("Expired: " . $now); // RFC2616 - Section 14.21 + header("Last-Modified: " . $now); + header("Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"); // HTTP/1.1 + header("Pragma: no-cache"); // HTTP/1.0 + header("Connection: Close"); + // Extension "rewrite" installed? if ((EXT_IS_ACTIVE("rewrite")) && (function_exists('REWRITE_LINKS')) && ($CSS != "1") && ($CSS != "-1")) { $OUTPUT = REWRITE_LINKS($OUTPUT); diff --git a/inc/modules/admin/what-overview.php b/inc/modules/admin/what-overview.php index d6c7c10813..965ac2be33 100644 --- a/inc/modules/admin/what-overview.php +++ b/inc/modules/admin/what-overview.php @@ -38,7 +38,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +// In Opera browsers the menu is being displayed double: ADD_DESCR("admin", __FILE__); // Otherwise load include file 'overview-inc' (old standard overview page) require_once(PATH."inc/modules/admin/overview-inc.php");