aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-04-01 13:23:42 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-04-01 13:23:42 +0000
commit985c0f8b6fbe07d2bb0604d6585956e50b72235b (patch)
treee397d77f011568b941237ad4d87ad8aa9ead4883 /phpBB
parent1d445aa3bae9b857dfd272061eccc08fa537cfd7 (diff)
downloadforums-985c0f8b6fbe07d2bb0604d6585956e50b72235b.tar
forums-985c0f8b6fbe07d2bb0604d6585956e50b72235b.tar.gz
forums-985c0f8b6fbe07d2bb0604d6585956e50b72235b.tar.bz2
forums-985c0f8b6fbe07d2bb0604d6585956e50b72235b.tar.xz
forums-985c0f8b6fbe07d2bb0604d6585956e50b72235b.zip
Latest header attempt
git-svn-id: file:///svn/phpbb/trunk@2458 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/page_header.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php
index 8fde164676..65154e1822 100644
--- a/phpBB/includes/page_header.php
+++ b/phpBB/includes/page_header.php
@@ -264,7 +264,7 @@ if ( $userdata['session_logged_in'] )
$sql = "UPDATE " . USERS_TABLE . "
SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
WHERE user_id = " . $userdata['user_id'];
- if ( !($status = $db->sql_query($sql)) )
+ if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
}
@@ -448,11 +448,7 @@ else
}
}
-if ( getenv('REQUEST_METHOD') != 'POST' )
-{
- header ('Cache-Control: private, no-cache, must-revalidate, pre-check=2, post-check=2, max-age=25');
- header ('Pragma: no-cache');
-}
+header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');