X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fstyle.php;h=4e82bfc32772f1a6aa93850635b5bafd17242f8f;hp=9b9202b9755262c6d7f7da05c546b66b88350408;hb=1977ab5587905d225c6288141b82f7a6e3d29d02;hpb=9e06a3eab03fb20c67c6ea84a34b21ea5a528e19
diff --git a/src/style.php b/src/style.php
index 9b9202b9..4e82bfc3 100644
--- a/src/style.php
+++ b/src/style.php
@@ -14,7 +14,7 @@
*
fontsize - integer, sets selected font size
* dir - string, sets text direction variables. Possible values 'rtl' or 'ltr'
*
- * @copyright © 2005-2007 The SquirrelMail Project Team
+ * @copyright 2005-2010 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@ -180,16 +180,20 @@ if ( $lastmod = @filemtime(SM_PATH . $oTemplate->get_template_file_directory()
. 'css/stylesheet.tpl') ) {
$gmlastmod = gmdate('D, d M Y H:i:s', $lastmod) . ' GMT';
$expires = gmdate('D, d M Y H:i:s', strtotime('+1 week')) . ' GMT';
- header('Last-Modified: ' . $gmlastmod);
- header('Expires: '. $expires);
- header('Pragma: ');
- header('Cache-Control: public, must-revalidate');
+ $oTemplate->header('Last-Modified: ' . $gmlastmod);
+ $oTemplate->header('Expires: '. $expires);
+ $oTemplate->header('Pragma: ');
+ $oTemplate->header('Cache-Control: public, must-revalidate');
}
// Steve, why did you remove this? Is it irrelevant now? If so, let's
// remove the rest of the references to it here (note that it is being
// used above in the filetime() statement) and elsewhere
// $oTemplate->display('css/stylesheet.tpl');
+// don't show version as a security measure
+//$oTemplate->header('X-Powered-By: SquirrelMail/' . SM_VERSION, FALSE);
+$oTemplate->header('X-Powered-By: SquirrelMail', FALSE);
+
/**
* Additional styles are now handled by adding stylesheets to
* templates//css/, so here, we simply define some