diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-24 06:40:56 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-24 06:40:56 +0000 |
| commit | 96360879a89f2fcfadf65395b60e8689fa47b2ac (patch) | |
| tree | afc8e4f130d02fbe8e3e88860ae290c0e5c6e4dd /roundcubemail/program/include/rcube_output.php | |
| parent | 7414e58ffe428407cc6594340f8ef728f0f58bd6 (diff) | |
Bring back some legacy functions and session vars for better backwards compatibility
git-svn-id: https://svn.roundcube.net/trunk@6121 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_output.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_output.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_output.php b/roundcubemail/program/include/rcube_output.php index 4a51b5efe..e1d5e43b8 100644 --- a/roundcubemail/program/include/rcube_output.php +++ b/roundcubemail/program/include/rcube_output.php @@ -237,6 +237,21 @@ abstract class rcube_output } } + /** + * 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 |
