Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jp_milcent 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier - Administration.                                                       |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
8 jp_milcent 24
// CVS : $Id: hb_admin.menu.php,v 1.2 2006-10-31 10:31:36 jp_milcent Exp $
2 jp_milcent 25
/**
26
* Herbier Administration : menu
27
*
28
* Ce fichier fournit le menu de l'application herbier.
29
*
30
*@package Herbier-Administration
31
//Auteur original :
32
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
33
//Autres auteurs :
34
*@author        Aucun
35
*@copyright     Tela-Botanica 2000-2005
8 jp_milcent 36
*@version       $Revision: 1.2 $ $Date: 2006-10-31 10:31:36 $
2 jp_milcent 37
// +------------------------------------------------------------------------------------------------------+
38
*/
39
 
40
// +------------------------------------------------------------------------------------------------------+
41
// |                                            ENTETE du PROGRAMME                                       |
42
// +------------------------------------------------------------------------------------------------------+
43
/** Inclusion du fichier de configuration de l'application Herbier - Administration. */
8 jp_milcent 44
require_once HB_CHEMIN_MODULE.'hb_admin'.GEN_SEP.'configuration'.GEN_SEP.'hba_config.inc.php';
2 jp_milcent 45
 
46
// Appel du fichier de traduction des textes de l'application Administration de Herbier
47
if (file_exists(HBA_CHEMIN_LANGUES.'hba_langue_'.HB_I18N.'.inc.php')) {
48
    /** Inclusion du fichier de traduction de l'application Administration de Herbier. */
49
    include_once HBA_CHEMIN_LANGUES.'hba_langue_'.HB_I18N.'.inc.php';
50
} else {
51
    /** Inclusion du fichier de traduction fr par défaut. */
52
    include_once HBA_CHEMIN_LANGUES.'hba_langue_fr.inc.php';
53
}
54
 
55
/** Inclusion du fichier de fonctions permettant d'ajouter, modifier ou supprimer des
56
* informations dans la base de données Herbier. */
57
require_once HBA_CHEMIN_BIBLIO.'hba_manipulation.fonct.php';
58
 
59
/** Inclusion de la classe principale d'Herbier : herbier */
60
require_once HB_CHEMIN_BIBLIO.'hb_herbier.class.php';
61
/** Inclusion de la classe Herbier : collection */
62
require_once HB_CHEMIN_BIBLIO.'hb_collection.class.php';
63
/** Inclusion de la classe Herbier : indic */
64
require_once HB_CHEMIN_BIBLIO.'hb_indic.class.php';
65
/** Inclusion de la classe Herbier : indic_hist */
66
require_once HB_CHEMIN_BIBLIO.'hb_indic_hist.class.php';
67
/** Inclusion de la classe Herbier : organisation */
68
require_once HB_CHEMIN_BIBLIO.'hb_organisation.class.php';
69
/** Inclusion de la classe Herbier : type */
70
require_once HB_CHEMIN_BIBLIO.'hb_type.class.php';
71
/** Inclusion de la classe Herbier : equipe */
72
require_once HB_CHEMIN_BIBLIO.'hb_equipe.class.php';
73
/** Inclusion de la classe Herbier : utilisateur */
74
require_once HB_CHEMIN_BIBLIO.'hb_utilisateur.class.php';
75
 
76
// Initialisation de variables
77
$sortie .= '<!-- Herbier - Administration menu : DEBUT -->'."\n";
78
 
79
// +------------------------------------------------------------------------------------------------------+
80
// |                                            CORPS du PROGRAMME                                        |
81
// +------------------------------------------------------------------------------------------------------+
82
 
83
if (!defined('HBA_ARGUMENT_AUTH') || HBA_ARGUMENT_AUTH == FALSE || (HBA_ARGUMENT_AUTH == TRUE && $GLOBALS['_HERBIER_']['auth']->getAuth())) {
84
    // Initialisation de variables
85
    if (!isset($_REQUEST['action']) || empty($_REQUEST['action'])) {
86
        $_REQUEST['action'] = HBA_ACTION_ANNULER;
87
    }
88
    // Création de l'objet "façade" H_Herbier().
89
    $un_herbier = new H_Herbier($GLOBALS['_HERBIER_']['auth']->getAuthData(HB_BDD_TAB_ANNUAIRE_CHP_ID));
90
 
91
    // Affichage du menu de l'application si l'utilisateur à des droits pour l'appli
92
    if ($un_herbier->utilisateur->getDroit()) {
93
        $sortie .= entete($un_herbier);
94
    }
95
}
96
 
97
// +------------------------------------------------------------------------------------------------------+
98
// |                                            PIED du PROGRAMME                                         |
99
// +------------------------------------------------------------------------------------------------------+
100
$sortie .= '<!-- Herbier - Administration menu : FIN -->'."\n";
101
 
102
 
103
/* +--Fin du code ----------------------------------------------------------------------------------------+
104
*
105
* $Log: not supported by cvs2svn $
8 jp_milcent 106
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
107
* Ajout au dépot de l'application Herbiers.
108
* Elle doit à terme migrer dans eFlore.
109
*
2 jp_milcent 110
* Revision 1.2  2005/05/19 13:22:04  jpm
111
* Vérification des droits de l'utilisateur avant d'afficher le menu.
112
*
113
* Revision 1.1  2005/05/18 07:31:01  jpm
114
* Ajout du fichier gérant les menus de l'application admin.
115
*
116
* Revision 1.1  2005/04/06 13:34:00  jpm
117
* Ajout du fichier principal de l'application Administration.
118
*
119
*
120
* +-- Fin du code ----------------------------------------------------------------------------------------+
121
*/
122
?>