diff --git a/htdocs/theme/bluelagoon/bluelagoon.css b/htdocs/theme/bluelagoon/bluelagoon.css.php similarity index 97% rename from htdocs/theme/bluelagoon/bluelagoon.css rename to htdocs/theme/bluelagoon/bluelagoon.css.php index 57401e7e2f9..ee890807b15 100644 --- a/htdocs/theme/bluelagoon/bluelagoon.css +++ b/htdocs/theme/bluelagoon/bluelagoon.css.php @@ -1,5 +1,7 @@ -/* Copyright (C) 2002-2004 Rodolphe Quiedeville - * Copyright (C) 2004-2008 Laurent Destailleur + + * Copyright (C) 2006 Rodolphe Quiedeville + * Copyright (C) 2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,11 +19,23 @@ */ /** - * \file htdocs/theme/bluelagoon/bluelagoon.css.php + * \file htdocs/theme/bluelagoon/bluelagoon.css.php * \brief Fichier de style CSS du theme Blue lagoon * \version $Id$ */ +require("../../conf/conf.php"); + +// Define css type +header('Content-type: text/css'); +// Important: Avoid page request by browser and dynamic build at +// each Dolibarr page access. +if (empty($conf->global->MAIN_FEATURES_LEVEL) || $conf->global->MAIN_FEATURES_LEVEL < 2) +{ + header('Cache-Control: max-age=3600, public, must-revalidate'); +} +?> + /***** Style du fond *****/ body { diff --git a/htdocs/theme/rodolphe/rodolphe.css b/htdocs/theme/rodolphe/rodolphe.css.php similarity index 97% rename from htdocs/theme/rodolphe/rodolphe.css rename to htdocs/theme/rodolphe/rodolphe.css.php index 1102605e7cb..0981de40b22 100644 --- a/htdocs/theme/rodolphe/rodolphe.css +++ b/htdocs/theme/rodolphe/rodolphe.css.php @@ -1,5 +1,7 @@ -/* Copyright (C) 2002-2004 Rodolphe Quiedeville - * Copyright (C) 2004-2006 Laurent Destailleur + + * Copyright (C) 2006 Rodolphe Quiedeville + * Copyright (C) 2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +18,24 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id$ */ +/** + * \file htdocs/theme/rodolphe/rodoplhe.css.php + * \brief Fichier de style CSS du theme Rodolphe + * \version $Id$ + */ + +require("../../conf/conf.php"); + +// Define css type +header('Content-type: text/css'); +// Important: Avoid page request by browser and dynamic build at +// each Dolibarr page access. +if (empty($conf->global->MAIN_FEATURES_LEVEL) || $conf->global->MAIN_FEATURES_LEVEL < 2) +{ + header('Cache-Control: max-age=3600, public, must-revalidate'); +} +?> + /***** Style du fond *****/ body {