mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/13044] move GMT string out of gmdate()
PHPBB3-13044
This commit is contained in:
parent
33b2063680
commit
7cbd9e9524
@ -164,7 +164,7 @@ if (defined('DEBUG') && request_var('explain', 0) && $auth->acl_get('a_'))
|
||||
{
|
||||
header('Content-type: text/html; charset=UTF-8');
|
||||
header('Cache-Control: private, no-cache="set-cookie"');
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
$mtime = explode(' ', microtime());
|
||||
|
@ -5062,7 +5062,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
|
||||
// application/xhtml+xml not used because of IE
|
||||
'Content-type' => 'text/html; charset=UTF-8',
|
||||
'Cache-Control' => 'private, no-cache="set-cookie"',
|
||||
'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()),
|
||||
'Expires' => gmdate('D, d M Y H:i:s', time() . ' GMT'),
|
||||
'Pragma' => 'no-cache',
|
||||
);
|
||||
if (!empty($user->data['is_bot']))
|
||||
|
@ -112,7 +112,7 @@ function adm_page_header($page_title)
|
||||
// application/xhtml+xml not used because of IE
|
||||
'Content-type' => 'text/html; charset=UTF-8',
|
||||
'Cache-Control' => 'private, no-cache="set-cookie"',
|
||||
'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()),
|
||||
'Expires' => gmdate('D, d M Y H:i:s', time() . ' GMT'),
|
||||
'Pragma' => 'no-cache',
|
||||
);
|
||||
|
||||
|
@ -56,7 +56,7 @@ function send_avatar_to_browser($file, $browser)
|
||||
|
||||
if (strpos(strtolower($browser), 'msie 6.0') !== false)
|
||||
{
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -197,7 +197,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
|
||||
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
|
||||
{
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -445,7 +445,7 @@ class module
|
||||
|
||||
header('Content-type: text/html; charset=UTF-8');
|
||||
header('Cache-Control: private, no-cache="set-cookie"');
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user