[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] fudforum/setup/base/include core.inc, 1.1.1.1.2.2
From: |
ceb |
Subject: |
[Phpgroupware-cvs] fudforum/setup/base/include core.inc, 1.1.1.1.2.2 |
Date: |
Mon, 26 Sep 2005 01:22:00 +0200 |
Update of fudforum/setup/base/include
Modified Files:
Branch: Version-0_9_16-branch
core.inc lines: +21 -1
Log Message:
hopefully :) fix for ie-only attachment downloading problem
====================================================
Index: fudforum/setup/base/include/core.inc
diff -u fudforum/setup/base/include/core.inc:1.1.1.1.2.1
fudforum/setup/base/include/core.inc:1.1.1.1.2.2
--- fudforum/setup/base/include/core.inc:1.1.1.1.2.1 Tue Jun 14 16:29:37 2005
+++ fudforum/setup/base/include/core.inc Sun Sep 25 23:22:15 2005
@@ -25,6 +25,8 @@
register_shutdown_function('rls_db_lck');
$GLOBALS['TITLE_EXTRA'] = '';
+$GLOBALS['is_post'] = !empty($_POST);
+$GLOBALS['is_aol'] = (isset($_SERVER['HTTP_USER_AGENT']) &&
strpos($_SERVER['HTTP_USER_AGENT'], 'AOL') !== false);
if (get_magic_quotes_gpc()) {
function strip_quotes(&$var)
@@ -108,6 +110,24 @@
{
$st = fstat($fp);
return (isset($st['size']) ? $st['size'] : $st[7]);
+}
+
+
+function __fud_cache($t)
+{
+ if ($GLOBALS['is_aol']) {
+ return 0;
+ }
+ $mod = gmdate("D, d M Y H:i:s", $t) . " GMT";
+
+ /* send caching headers */
+ header("Last-Modified: " . $mod);
+ if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) &&
!isset($_SERVER['HTTP_RANGE']) && $_SERVER["HTTP_IF_MODIFIED_SINCE"] == $mod) {
+ header('HTTP/1.1 304 Not Modified');
+ header('Status: 304 Not Modified');
+ return 1;
+ }
+ return 0;
}
if (!function_exists('file_get_contents')) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] fudforum/setup/base/include core.inc, 1.1.1.1.2.2,
ceb <=