From aff970b5d3c71d3422852e49dbfcdbf5c8e8bbe0 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 09 Aug 2012 15:56:00 -0400
Subject: [PATCH] Replace some forgotten references to skins/default (#1488591)

---
 program/include/rcube_output.php |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/program/include/rcube_output.php b/program/include/rcube_output.php
index 4a51b5e..9aa7c9e 100644
--- a/program/include/rcube_output.php
+++ b/program/include/rcube_output.php
@@ -17,9 +17,6 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  | Author: Aleksander Machniak <alec@alec.pl>                            |
  +-----------------------------------------------------------------------+
-
- $Id$
-
 */
 
 /**
@@ -237,6 +234,21 @@
         }
     }
 
+    /**
+     * Send header with expire date 30 days in future
+     *
+     * @param int Expiration time in seconds
+     */
+    public function future_expire_header($offset = 2600000)
+    {
+        if (headers_sent())
+            return;
+
+        header("Expires: " . gmdate("D, d M Y H:i:s", time()+$offset) . " GMT");
+        header("Cache-Control: max-age=$offset");
+        header("Pragma: ");
+    }
+
 
     /**
      * Show error page and terminate script execution

--
Gitblit v1.9.1