From b7a5e77f827f54548ba270f0371f9a87ef9bba2c Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Mon, 6 Jul 2009 19:11:20 +0000
Subject: [PATCH] Qual: All theme are php files

---
 .../{bluelagoon.css => bluelagoon.css.php}    | 20 ++++++++++++---
 .../{rodolphe.css => rodolphe.css.php}        | 25 ++++++++++++++++---
 2 files changed, 39 insertions(+), 6 deletions(-)
 rename htdocs/theme/bluelagoon/{bluelagoon.css => bluelagoon.css.php} (97%)
 rename htdocs/theme/rodolphe/{rodolphe.css => rodolphe.css.php} (97%)

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 <rodolphe@quiedeville.org> 
- * Copyright (C) 2004-2008 Laurent Destailleur  <eldy@users.sourceforge.net> 
+<?php
+/* Copyright (C) 2004-2009 Laurent Destailleur  <eldy@users.sourceforge.net>
+ * Copyright (C)      2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
+ * Copyright (C)      2007 Regis Houssin        <regis@dolibarr.fr>
  *
  * 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 <rodolphe@quiedeville.org> 
- * Copyright (C) 2004-2006 Laurent Destailleur  <eldy@users.sourceforge.net> 
+<?php
+/* Copyright (C) 2004-2009 Laurent Destailleur  <eldy@users.sourceforge.net>
+ * Copyright (C)      2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
+ * Copyright (C)      2007 Regis Houssin        <regis@dolibarr.fr>
  *
  * 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 {
-- 
GitLab