Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php/*vim: set expandtab tabstop=4 shiftwidth=4: */// +------------------------------------------------------------------------------------------------------+// | PHP version 4.1 |// +------------------------------------------------------------------------------------------------------+// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |// +------------------------------------------------------------------------------------------------------+// | This file is part of Herbier - Administration. |// | |// | Foobar 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 |// | (at your option) any later version. |// | |// | Foobar is distributed in the hope that it will be useful, |// | but WITHOUT ANY WARRANTY; without even the implied warranty of |// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |// | GNU General Public License for more details. |// | |// | You should have received a copy of the GNU General Public License |// | along with Foobar; if not, write to the Free Software |// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |// +------------------------------------------------------------------------------------------------------+// CVS : $Id: hb_admin.menu.php,v 1.2 2006-10-31 10:31:36 jp_milcent Exp $/*** Herbier Administration : menu** Ce fichier fournit le menu de l'application herbier.**@package Herbier-Administration//Auteur original :*@author Jean-Pascal MILCENT <jpm@clapas.org>//Autres auteurs :*@author Aucun*@copyright Tela-Botanica 2000-2005*@version $Revision: 1.2 $ $Date: 2006-10-31 10:31:36 $// +------------------------------------------------------------------------------------------------------+*/// +------------------------------------------------------------------------------------------------------+// | ENTETE du PROGRAMME |// +------------------------------------------------------------------------------------------------------+/** Inclusion du fichier de configuration de l'application Herbier - Administration. */require_once HB_CHEMIN_MODULE.'hb_admin'.GEN_SEP.'configuration'.GEN_SEP.'hba_config.inc.php';// Appel du fichier de traduction des textes de l'application Administration de Herbierif (file_exists(HBA_CHEMIN_LANGUES.'hba_langue_'.HB_I18N.'.inc.php')) {/** Inclusion du fichier de traduction de l'application Administration de Herbier. */include_once HBA_CHEMIN_LANGUES.'hba_langue_'.HB_I18N.'.inc.php';} else {/** Inclusion du fichier de traduction fr par défaut. */include_once HBA_CHEMIN_LANGUES.'hba_langue_fr.inc.php';}/** Inclusion du fichier de fonctions permettant d'ajouter, modifier ou supprimer des* informations dans la base de données Herbier. */require_once HBA_CHEMIN_BIBLIO.'hba_manipulation.fonct.php';/** Inclusion de la classe principale d'Herbier : herbier */require_once HB_CHEMIN_BIBLIO.'hb_herbier.class.php';/** Inclusion de la classe Herbier : collection */require_once HB_CHEMIN_BIBLIO.'hb_collection.class.php';/** Inclusion de la classe Herbier : indic */require_once HB_CHEMIN_BIBLIO.'hb_indic.class.php';/** Inclusion de la classe Herbier : indic_hist */require_once HB_CHEMIN_BIBLIO.'hb_indic_hist.class.php';/** Inclusion de la classe Herbier : organisation */require_once HB_CHEMIN_BIBLIO.'hb_organisation.class.php';/** Inclusion de la classe Herbier : type */require_once HB_CHEMIN_BIBLIO.'hb_type.class.php';/** Inclusion de la classe Herbier : equipe */require_once HB_CHEMIN_BIBLIO.'hb_equipe.class.php';/** Inclusion de la classe Herbier : utilisateur */require_once HB_CHEMIN_BIBLIO.'hb_utilisateur.class.php';// Initialisation de variables$sortie .= '<!-- Herbier - Administration menu : DEBUT -->'."\n";// +------------------------------------------------------------------------------------------------------+// | CORPS du PROGRAMME |// +------------------------------------------------------------------------------------------------------+if (!defined('HBA_ARGUMENT_AUTH') || HBA_ARGUMENT_AUTH == FALSE || (HBA_ARGUMENT_AUTH == TRUE && $GLOBALS['_HERBIER_']['auth']->getAuth())) {// Initialisation de variablesif (!isset($_REQUEST['action']) || empty($_REQUEST['action'])) {$_REQUEST['action'] = HBA_ACTION_ANNULER;}// Création de l'objet "façade" H_Herbier().$un_herbier = new H_Herbier($GLOBALS['_HERBIER_']['auth']->getAuthData(HB_BDD_TAB_ANNUAIRE_CHP_ID));// Affichage du menu de l'application si l'utilisateur à des droits pour l'appliif ($un_herbier->utilisateur->getDroit()) {$sortie .= entete($un_herbier);}}// +------------------------------------------------------------------------------------------------------+// | PIED du PROGRAMME |// +------------------------------------------------------------------------------------------------------+$sortie .= '<!-- Herbier - Administration menu : FIN -->'."\n";/* +--Fin du code ----------------------------------------------------------------------------------------+** $Log: not supported by cvs2svn $* Revision 1.1 2005/11/23 10:32:32 jp_milcent* Ajout au dépot de l'application Herbiers.* Elle doit à terme migrer dans eFlore.** Revision 1.2 2005/05/19 13:22:04 jpm* Vérification des droits de l'utilisateur avant d'afficher le menu.** Revision 1.1 2005/05/18 07:31:01 jpm* Ajout du fichier gérant les menus de l'application admin.** Revision 1.1 2005/04/06 13:34:00 jpm* Ajout du fichier principal de l'application Administration.*** +-- Fin du code ----------------------------------------------------------------------------------------+*/?>