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: hba_config.inc.php,v 1.2 2006-10-31 10:31:36 jp_milcent Exp $
2 jp_milcent 25
/**
26
* Configuration Herbier - Administration
27
*
28
* Configuration de l'interface d'administration des herbiers.
29
*
30
*@package Herbier-Administration
31
*@subpackage Configuration
32
//Auteur original :
33
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
34
//Autres auteurs :
35
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
36
*@copyright     Tela-Botanica 2000-2005
8 jp_milcent 37
*@version       $Revision: 1.2 $ $Date: 2006-10-31 10:31:36 $
2 jp_milcent 38
// +------------------------------------------------------------------------------------------------------+
39
*/
40
 
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
44
// Modification de la gestion des guillemets magiques.
45
set_magic_quotes_runtime(0);
46
 
47
// +------------------------------------------------------------------------------------------------------+
48
// |                                            CORPS du PROGRAMME                                        |
49
// +------------------------------------------------------------------------------------------------------+
50
/** Constante stockant le chemin du dossier contenant l'application Herbier - Administration.*/
8 jp_milcent 51
define('HBA_CHEMIN_RACINE', HB_CHEMIN_MODULE.'hb_admin'.GEN_SEP);
2 jp_milcent 52
/** Constante stockant le chemin du dossier contenant les traductions.*/
53
define('HBA_CHEMIN_LANGUES', HBA_CHEMIN_RACINE.'langues'.GEN_SEP);
54
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
55
define('HBA_CHEMIN_BIBLIO', HBA_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
56
/** Constante stockant le chemin du dossier contenant les fichiers de présentations (css, javascript,...).*/
57
define('HBA_CHEMIN_PRESENTATION', HBA_CHEMIN_RACINE.'presentations'.GEN_SEP);
58
/** Constante stockant le chemin du dossier contenant les fichiers Javascripts.*/
59
define('HBA_CHEMIN_SCRIPT', HBA_CHEMIN_PRESENTATION.'scripts'.GEN_SEP);
60
/** Constante stockant le chemin du dossier contenant les fichiers CSS.*/
61
define('HBA_CHEMIN_STYLE', HBA_CHEMIN_PRESENTATION.'styles'.GEN_SEP);
62
 
63
// +------------------------------------------------------------------------------------------------------+
64
// Identification
65
/** Constante stockant si oui ou non, l'identification est nécessaire pour l'administration.*/
66
define('HBA_ARGUMENT_AUTH', TRUE);
67
 
68
// +------------------------------------------------------------------------------------------------------+
69
// Exemple
70
/** Constante stockant la valeur de l'identifiant de l'exemple d'herbier.*/
71
define('HBA_EXEMPLE_ID', 35);
72
 
73
// +------------------------------------------------------------------------------------------------------+
74
// Apparence
75
/** Constante stockant la valeur de la longueur maxi du nom de l'organisation affichable dans le cartouche.*/
76
define('HBA_LONGUEUR_ORG_NOM', 17);
77
/** Constante stockant la valeur de la longueur maxi du texte des notes.*/
78
define('HBA_LONGUEUR_NOTE_TXT', 35);
79
 
80
// +------------------------------------------------------------------------------------------------------+
81
// Actions d'administration
82
// Gestion d'une organisation
83
/** Constante stockant la valeur pour l'action annuler.*/
84
define('HBA_ACTION_ANNULER', 0);
85
/** Constante stockant la valeur pour l'action ouvrant le formulaire d'ajout d'une institution (Herbier).*/
86
define('HBA_ACTION_HERBIER_AJOUT', 1);//NOUVEAU_HERB1
87
/** Constante stockant la valeur pour l'action vérifiant le formulaire d'ajout d'une institution (Herbier).*/
88
define('HBA_ACTION_HERBIER_VERIF', 2);//NOUVEAU_HERB2
89
/** Constante stockant la valeur pour l'action déroulant les infos d'une institution (Herbier).*/
90
define('HBA_ACTION_COLL_DEROULER', 5);
91
define("NOUVEAU_HERB4",3) ;
92
define('MOD_HERB' , 20) ;
93
define('MOD_ADM' , 22) ;
94
define("MOD_ADM_V", 26) ;
95
define("MOD_CONT" ,23) ;
96
define("MOD_CONT_V", 28) ;
97
define("SUPPR_HERB", 35) ;
98
// Gestion des collections
99
define("NOUV_COLL", 4) ;
100
define("MOD_DESC" ,21) ;
101
define("MOD_DESC_V", 27) ;
102
define("SUPPR_COLL", 29) ;
103
// Gestion de l'équipe
104
define("MOD_TEAM" , 24) ;
105
define("NOUV_TEAM", 30) ;
106
define("NOUV_TEAM_V", 31) ;
107
define("MOD_STAFF", 32) ;
108
define("MOD_STAFF_V", 33) ;
109
define("SUPPR_STAFF" ,34) ;
110
// Gestion des notes
111
define("MOD_INDIC" ,25) ;
112
define("NOUV_INDIC", 40) ;
113
define("NOUV_INDIC_V" ,41) ;
114
define("MOD_NOTE", 42) ;
115
define("SUPPR_NOTE", 43) ;
116
define("MOD_NOTE_V", 44) ;
117
// Gestion des correspondants
118
/** Constante stockant la valeur pour l'action déroulant les infos d'une institution (Herbier).*/
119
define('HBA_ACTION_COR_DEROULER', 14);
120
define("NOUVEAU_CORR", 10) ;
121
define("NOUVEAU_CORR_V", 11) ;
122
define("SUPPR_CORR", 12) ;
123
define("SUPPR_CORR_V", 13) ;
124
// Gestion des rédacteurs
125
define('HBA_ACTION_RED_DEROULER', 54);
126
define("NOUV_RED", 50) ;
127
define("NOUV_RED_V", 51) ;
128
define("SUPPR_RED", 52) ;
129
define("SUPPR_RED_V", 53) ;
130
 
131
// +------------------------------------------------------------------------------------------------------+
132
// |                                            PIED du PROGRAMME                                         |
133
// +------------------------------------------------------------------------------------------------------+
134
 
135
 
136
 
137
/* +--Fin du code ----------------------------------------------------------------------------------------+
138
*
139
* $Log: not supported by cvs2svn $
8 jp_milcent 140
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
141
* Ajout au dépot de l'application Herbiers.
142
* Elle doit à terme migrer dans eFlore.
143
*
2 jp_milcent 144
* Revision 1.1  2005/04/06 13:30:52  jpm
145
* Ajout du fichier de config de l'appli.
146
*
147
*
148
* +-- Fin du code ----------------------------------------------------------------------------------------+
149
*/
150
?>