Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 5 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 12
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier.                                                                        |
8
// | This file is part of Herbier.                                                                        |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
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                                 |
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                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: hb_config_url.inc.php,v 1.2 2006-10-30 18:56:52 jp_milcent Exp $
24
// CVS : $Id: hb_config_url.inc.php,v 1.3 2006-10-31 15:06:44 jp_milcent Exp $
25
/**
25
/**
26
* Configuration générale des url des applications de Biblio Bota
26
* Configuration générale des url des applications de Biblio Bota
27
*
27
*
28
* Ce fichier permet de stocker les valeurs concernant les url communes aux différentes applications 
28
* Ce fichier permet de stocker les valeurs concernant les url communes aux différentes applications 
29
* constituant Herbier.
29
* constituant Herbier.
30
*
30
*
31
*@package Herbier
31
*@package Herbier
32
*@subpackage Configuration
32
*@subpackage Configuration
33
//Auteur original :
33
//Auteur original :
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
35
//Autres auteurs :
35
//Autres auteurs :
36
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
36
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
37
*@copyright     Tela-Botanica 2000-2005
37
*@copyright     Tela-Botanica 2000-2005
38
*@version       $Revision: 1.2 $ $Date: 2006-10-30 18:56:52 $
38
*@version       $Revision: 1.3 $ $Date: 2006-10-31 15:06:44 $
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
*/
40
*/
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
45
 
45
 
46
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
47
// Définition des URL
47
// Définition des URL
48
// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments.
48
// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments.
49
//ini_set('arg_separator.output', '&amp;');// Déjà défini dans Papyrus
49
//ini_set('arg_separator.output', '&amp;');// Déjà défini dans Papyrus
50
/** Constante stockant l'url de base de l'application.*/
50
/** Constante stockant l'url de base de l'application.*/
51
define('HB_URL_COURANTE', $GLOBALS['_GEN_commun']['url']->getUrl());
51
define('HB_URL_COURANTE', $GLOBALS['_GEN_commun']['url']->getUrl());
52
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier.*/
52
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier.*/
53
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_admin');
53
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_admin');
54
define('HB_URL_COURANTE_ADMIN', $GLOBALS['_HERBIER_']['url']->getUrl());
54
define('HB_URL_COURANTE_ADMIN', $GLOBALS['_HERBIER_']['url']->getUrl());
55
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
55
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
56
$GLOBALS['_HERBIER_']['url']->addQueryString('action', '%s');
56
$GLOBALS['_HERBIER_']['url']->addQueryString('action', '%s', true);
57
define('HB_URL_COURANTE_ADMIN_ACTION', $GLOBALS['_HERBIER_']['url']->getUrl());
57
define('HB_URL_COURANTE_ADMIN_ACTION', $GLOBALS['_HERBIER_']['url']->getUrl());
58
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec la lettre configurable.*/
58
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec la lettre configurable.*/
59
$GLOBALS['_HERBIER_']['url']->addQueryString('lettre', '%s');
59
$GLOBALS['_HERBIER_']['url']->addQueryString('lettre', '%s', true);
60
define('HB_URL_COURANTE_ADMIN_ACTION_LETTRE', $GLOBALS['_HERBIER_']['url']->getUrl());
60
define('HB_URL_COURANTE_ADMIN_ACTION_LETTRE', $GLOBALS['_HERBIER_']['url']->getUrl());
61
$GLOBALS['_HERBIER_']['url']->removeQueryString('lettre');
61
$GLOBALS['_HERBIER_']['url']->removeQueryString('lettre');
62
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour une organisation donnée.*/
62
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour une organisation donnée.*/
63
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s');
63
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true);
64
define('HB_URL_COURANTE_ADMIN_ACTION_ORGANISATION', $GLOBALS['_HERBIER_']['url']->getUrl());
64
define('HB_URL_COURANTE_ADMIN_ACTION_ORGANISATION', $GLOBALS['_HERBIER_']['url']->getUrl());
65
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un équipier donné.*/
65
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un équipier donné.*/
66
$GLOBALS['_HERBIER_']['url']->addQueryString('id_equipe', '%s');
66
$GLOBALS['_HERBIER_']['url']->addQueryString('id_equipe', '%s', true);
67
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_EQUIPE', $GLOBALS['_HERBIER_']['url']->getUrl());
67
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_EQUIPE', $GLOBALS['_HERBIER_']['url']->getUrl());
68
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_equipe');
68
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_equipe');
69
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/
69
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/
70
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s');
70
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true);
71
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
71
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
72
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
72
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
73
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une collection donnée.*/
73
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une collection donnée.*/
74
$GLOBALS['_HERBIER_']['url']->addQueryString('id_coll', '%s');
74
$GLOBALS['_HERBIER_']['url']->addQueryString('id_coll', '%s', true);
75
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL', $GLOBALS['_HERBIER_']['url']->getUrl());
75
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL', $GLOBALS['_HERBIER_']['url']->getUrl());
76
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/
76
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/
77
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s');
77
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true);
78
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
78
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
79
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
79
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
80
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_coll');
80
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_coll');
81
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org');
81
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org');
82
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
82
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
83
$GLOBALS['_HERBIER_']['url']->addQueryString('id_utilisateur', '%s');
83
$GLOBALS['_HERBIER_']['url']->addQueryString('id_utilisateur', '%s', true);
84
define('HB_URL_COURANTE_ADMIN_ACTION_UTILISATEUR', $GLOBALS['_HERBIER_']['url']->getUrl());
84
define('HB_URL_COURANTE_ADMIN_ACTION_UTILISATEUR', $GLOBALS['_HERBIER_']['url']->getUrl());
85
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_utilisateur');
85
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_utilisateur');
86
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un correspondant précis.*/
86
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un correspondant précis.*/
87
$GLOBALS['_HERBIER_']['url']->addQueryString('id_cor', '%s#hba_correspondant_%s');
87
$GLOBALS['_HERBIER_']['url']->addQueryString('id_cor', '%s#hba_correspondant_%s', true);
88
define('HB_URL_COURANTE_ADMIN_ACTION_COR', $GLOBALS['_HERBIER_']['url']->getUrl());
88
define('HB_URL_COURANTE_ADMIN_ACTION_COR', $GLOBALS['_HERBIER_']['url']->getUrl());
89
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_cor');
89
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_cor');
90
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un rédacteur précis.*/
90
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un rédacteur précis.*/
91
$GLOBALS['_HERBIER_']['url']->addQueryString('id_red', '%s');
91
$GLOBALS['_HERBIER_']['url']->addQueryString('id_red', '%s', true);
92
define('HB_URL_COURANTE_ADMIN_ACTION_RED', $GLOBALS['_HERBIER_']['url']->getUrl());
92
define('HB_URL_COURANTE_ADMIN_ACTION_RED', $GLOBALS['_HERBIER_']['url']->getUrl());
93
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_red');
93
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_red');
94
$GLOBALS['_HERBIER_']['url']->removeQueryString('action');
94
$GLOBALS['_HERBIER_']['url']->removeQueryString('action');
95
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
95
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
96
/** Constante stockant l'url de base et un argument appelant l'application hb_consultation de Herbier.*/
96
/** Constante stockant l'url de base et un argument appelant l'application hb_consultation de Herbier.*/
97
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_consultation');
97
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_consultation');
98
define('HB_URL_COURANTE_CONSULTATION', $GLOBALS['_HERBIER_']['url']->getUrl());
98
define('HB_URL_COURANTE_CONSULTATION', $GLOBALS['_HERBIER_']['url']->getUrl());
99
 
99
 
100
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche herbier 
100
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche herbier 
101
* de l'application hb_moteur de Herbier.*/
101
* de l'application hb_moteur de Herbier.*/
102
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'herbier');
102
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'herbier');
103
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER', $GLOBALS['_HERBIER_']['url']->getUrl());
103
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER', $GLOBALS['_HERBIER_']['url']->getUrl());
104
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche herbier précise 
104
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche herbier précise 
105
* de l'application hb_moteur de Herbier.*/
105
* de l'application hb_moteur de Herbier.*/
106
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s');
106
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true);
107
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID', $GLOBALS['_HERBIER_']['url']->getUrl());
107
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID', $GLOBALS['_HERBIER_']['url']->getUrl());
108
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org');
-
 
109
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
108
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
110
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection 
109
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection 
111
* de l'application hb_moteur de Herbier.*/
110
* de l'application hb_moteur de Herbier.*/
112
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'collection');
111
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'collection');
-
 
112
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION_ID',  $GLOBALS['_HERBIER_']['url']->getUrl());
-
 
113
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org');
-
 
114
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection 
-
 
115
* de l'application hb_moteur de Herbier.*/
113
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION',  $GLOBALS['_HERBIER_']['url']->getUrl());
116
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION',  $GLOBALS['_HERBIER_']['url']->getUrl());
114
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
117
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
115
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
118
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
116
/* +--Fin du code ----------------------------------------------------------------------------------------+
119
/* +--Fin du code ----------------------------------------------------------------------------------------+
117
*
120
*
118
* $Log: not supported by cvs2svn $
121
* $Log: not supported by cvs2svn $
-
 
122
* Revision 1.2  2006/10/30 18:56:52  jp_milcent
-
 
123
* Utilisation de Pap_URL.
-
 
124
*
119
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
125
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
120
* Ajout au dépot de l'application Herbiers.
126
* Ajout au dépot de l'application Herbiers.
121
* Elle doit à terme migrer dans eFlore.
127
* Elle doit à terme migrer dans eFlore.
122
*
128
*
123
* Revision 1.3  2005/04/06 13:28:51  jpm
129
* Revision 1.3  2005/04/06 13:28:51  jpm
124
* Ajout des constantes de configuration.
130
* Ajout des constantes de configuration.
125
*
131
*
126
* Revision 1.2  2005/03/09 15:58:00  jpm
132
* Revision 1.2  2005/03/09 15:58:00  jpm
127
* Ajout et modification de constantes.
133
* Ajout et modification de constantes.
128
*
134
*
129
* Revision 1.1  2005/03/08 14:13:59  jpm
135
* Revision 1.1  2005/03/08 14:13:59  jpm
130
* Ajout des fichiers de configuration de Herbier.
136
* Ajout des fichiers de configuration de Herbier.
131
*
137
*
132
*
138
*
133
* +-- Fin du code ----------------------------------------------------------------------------------------+
139
* +-- Fin du code ----------------------------------------------------------------------------------------+
134
*/
140
*/
135
?>
141
?>