X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fstyle.php;h=2bcb39ab194fd43b41801e5d1bcbd58ac3dadcf4;hb=1a75323982539550517e4ec6a17f5a0f8df65aac;hp=c79dcb4fc36f3f5d7da497bcc6a04f1138e1cb17;hpb=ebd2391cb0c5e3049870f90fa8a8b28707e9571a;p=squirrelmail.git
diff --git a/src/style.php b/src/style.php
index c79dcb4f..2bcb39ab 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-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@ -23,12 +23,6 @@
/** This is the style page */
define('PAGE_NAME', 'style');
-/**
- * Set the location in order to skip unneeded validation and other includes
- * in the SquirrelMail initialisation file.
- */
-$sInitLocation = 'style';
-
/**
* Include the SquirrelMail initialization file.
*/
@@ -186,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