From 55fce02e9e5d0bdd8d2a0269e911904ce3cab2fd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 19 Dec 2002 23:04:02 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/conf/conf.class.php3.sample | 50 ++++++++++++++++++++++++++++-- htdocs/pre.inc.php3 | 21 ++++++++++--- 2 files changed, 63 insertions(+), 8 deletions(-) diff --git a/htdocs/conf/conf.class.php3.sample b/htdocs/conf/conf.class.php3.sample index 6a2989b2e33..afbaed292f8 100644 --- a/htdocs/conf/conf.class.php3.sample +++ b/htdocs/conf/conf.class.php3.sample @@ -1,9 +1,6 @@ * - * $Id$ - * $Source$ - * * 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 * the Free Software Foundation; either version 2 of the License, or @@ -18,6 +15,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * $Source$ + * */ class Conf { @@ -40,6 +40,14 @@ class Conf { $this->webcal = new WebcalConf(); + $this->produit = new ProduitConf(); + + $this->service = new ServiceConf(); + + $this->adherent = new AdherentConf(); + + $this->domaine = new domaineConf(); + $this->readonly = 0; $this->years = 2001; @@ -131,5 +139,41 @@ class FicheInterConf { $this->outputurl = "/document/fichinter"; } } +/* + * Produits + * + */ +class ProduitConf { + Function ProduitConf() { + $this->enabled = 0; + } +} +/* + * Service + * + */ +class ServiceConf { + Function ServiceConf() { + $this->enabled = 0; + } +} +/* + * Adherents + * + */ +class AdherentConf { + Function AdherentConf() { + $this->enabled = 0; + } +} +/* + * Domaines + * + */ +class DomaineConf { + Function DomaineConf() { + $this->enabled = 0; + } +} ?> diff --git a/htdocs/pre.inc.php3 b/htdocs/pre.inc.php3 index 1215b2275e1..9fbc03a9b04 100644 --- a/htdocs/pre.inc.php3 +++ b/htdocs/pre.inc.php3 @@ -56,11 +56,20 @@ function llxHeader($head = "") { $menu->add("/fourn/index.php3", "Fournisseurs"); - $menu->add("/product/", "Produits"); + if ($conf->produit->enabled ) + { + $menu->add("/product/", "Produits"); + } - $menu->add("/service/", "Services"); + if ($conf->service->enabled ) + { + $menu->add("/service/", "Services"); + } - $menu->add("/adherents/", "Adherents"); + if ($conf->adherent->enabled ) + { + $menu->add("/adherents/", "Adherents"); + } $menu->add("/compta/dons/", "Dons"); @@ -77,8 +86,10 @@ function llxHeader($head = "") { $menu->add_submenu("/compta/voyage/reduc.php3","Reduc"); } - - $menu->add("/domain/", "Domaines"); + if ($conf->domaine->enabled ) + { + $menu->add("/domain/", "Domaines"); + } /* *