Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 5 | 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) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier.                                                                        |
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
// +------------------------------------------------------------------------------------------------------+
12 jp_milcent 24
// CVS : $Id: hb_config_url.inc.php,v 1.3 2006-10-31 15:06:44 jp_milcent Exp $
2 jp_milcent 25
/**
26
* Configuration générale des url des applications de Biblio Bota
27
*
28
* Ce fichier permet de stocker les valeurs concernant les url communes aux différentes applications
29
* constituant Herbier.
30
*
31
*@package Herbier
32
*@subpackage Configuration
33
//Auteur original :
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
35
//Autres auteurs :
36
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
37
*@copyright     Tela-Botanica 2000-2005
12 jp_milcent 38
*@version       $Revision: 1.3 $ $Date: 2006-10-31 15:06:44 $
2 jp_milcent 39
// +------------------------------------------------------------------------------------------------------+
40
*/
41
 
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
45
 
46
// +------------------------------------------------------------------------------------------------------+
47
// Définition des URL
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
50
/** Constante stockant l'url de base de l'application.*/
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.*/
5 jp_milcent 53
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_admin');
54
define('HB_URL_COURANTE_ADMIN', $GLOBALS['_HERBIER_']['url']->getUrl());
2 jp_milcent 55
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
12 jp_milcent 56
$GLOBALS['_HERBIER_']['url']->addQueryString('action', '%s', true);
5 jp_milcent 57
define('HB_URL_COURANTE_ADMIN_ACTION', $GLOBALS['_HERBIER_']['url']->getUrl());
2 jp_milcent 58
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec la lettre configurable.*/
12 jp_milcent 59
$GLOBALS['_HERBIER_']['url']->addQueryString('lettre', '%s', true);
5 jp_milcent 60
define('HB_URL_COURANTE_ADMIN_ACTION_LETTRE', $GLOBALS['_HERBIER_']['url']->getUrl());
61
$GLOBALS['_HERBIER_']['url']->removeQueryString('lettre');
2 jp_milcent 62
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour une organisation donnée.*/
12 jp_milcent 63
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true);
5 jp_milcent 64
define('HB_URL_COURANTE_ADMIN_ACTION_ORGANISATION', $GLOBALS['_HERBIER_']['url']->getUrl());
2 jp_milcent 65
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un équipier donné.*/
12 jp_milcent 66
$GLOBALS['_HERBIER_']['url']->addQueryString('id_equipe', '%s', true);
5 jp_milcent 67
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_EQUIPE', $GLOBALS['_HERBIER_']['url']->getUrl());
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.*/
12 jp_milcent 70
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true);
5 jp_milcent 71
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
72
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
2 jp_milcent 73
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une collection donnée.*/
12 jp_milcent 74
$GLOBALS['_HERBIER_']['url']->addQueryString('id_coll', '%s', true);
5 jp_milcent 75
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL', $GLOBALS['_HERBIER_']['url']->getUrl());
2 jp_milcent 76
/** Constante stockant l'url de base et des arguments appelant l'application hb_admin de Herbier pour une note donnée.*/
12 jp_milcent 77
$GLOBALS['_HERBIER_']['url']->addQueryString('id_note', '%s', true);
5 jp_milcent 78
define('HB_URL_COURANTE_ADMIN_ACTION_ORG_COLL_NOTE', $GLOBALS['_HERBIER_']['url']->getUrl());
79
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_note');
80
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_coll');
81
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_org');
2 jp_milcent 82
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier avec l'action configurable.*/
12 jp_milcent 83
$GLOBALS['_HERBIER_']['url']->addQueryString('id_utilisateur', '%s', true);
5 jp_milcent 84
define('HB_URL_COURANTE_ADMIN_ACTION_UTILISATEUR', $GLOBALS['_HERBIER_']['url']->getUrl());
85
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_utilisateur');
2 jp_milcent 86
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un correspondant précis.*/
12 jp_milcent 87
$GLOBALS['_HERBIER_']['url']->addQueryString('id_cor', '%s#hba_correspondant_%s', true);
5 jp_milcent 88
define('HB_URL_COURANTE_ADMIN_ACTION_COR', $GLOBALS['_HERBIER_']['url']->getUrl());
89
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_cor');
2 jp_milcent 90
/** Constante stockant l'url de base et un argument appelant l'application hb_admin de Herbier pour un rédacteur précis.*/
12 jp_milcent 91
$GLOBALS['_HERBIER_']['url']->addQueryString('id_red', '%s', true);
5 jp_milcent 92
define('HB_URL_COURANTE_ADMIN_ACTION_RED', $GLOBALS['_HERBIER_']['url']->getUrl());
93
$GLOBALS['_HERBIER_']['url']->removeQueryString('id_red');
94
$GLOBALS['_HERBIER_']['url']->removeQueryString('action');
95
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
2 jp_milcent 96
/** Constante stockant l'url de base et un argument appelant l'application hb_consultation de Herbier.*/
5 jp_milcent 97
$GLOBALS['_HERBIER_']['url']->addQueryString('appli', 'hb_consultation');
98
define('HB_URL_COURANTE_CONSULTATION', $GLOBALS['_HERBIER_']['url']->getUrl());
99
 
2 jp_milcent 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.*/
5 jp_milcent 102
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'herbier');
103
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER', $GLOBALS['_HERBIER_']['url']->getUrl());
2 jp_milcent 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.*/
12 jp_milcent 106
$GLOBALS['_HERBIER_']['url']->addQueryString('id_org', '%s', true);
5 jp_milcent 107
define('HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID', $GLOBALS['_HERBIER_']['url']->getUrl());
108
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
2 jp_milcent 109
/** Constante stockant l'url de base et un argument appelant la consulation d'une fiche collection
110
* de l'application hb_moteur de Herbier.*/
5 jp_milcent 111
$GLOBALS['_HERBIER_']['url']->addQueryString('consultation', 'collection');
12 jp_milcent 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.*/
5 jp_milcent 116
define('HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION',  $GLOBALS['_HERBIER_']['url']->getUrl());
117
$GLOBALS['_HERBIER_']['url']->removeQueryString('consultation');
118
$GLOBALS['_HERBIER_']['url']->removeQueryString('appli');
2 jp_milcent 119
/* +--Fin du code ----------------------------------------------------------------------------------------+
120
*
121
* $Log: not supported by cvs2svn $
12 jp_milcent 122
* Revision 1.2  2006/10/30 18:56:52  jp_milcent
123
* Utilisation de Pap_URL.
124
*
5 jp_milcent 125
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
126
* Ajout au dépot de l'application Herbiers.
127
* Elle doit à terme migrer dans eFlore.
128
*
2 jp_milcent 129
* Revision 1.3  2005/04/06 13:28:51  jpm
130
* Ajout des constantes de configuration.
131
*
132
* Revision 1.2  2005/03/09 15:58:00  jpm
133
* Ajout et modification de constantes.
134
*
135
* Revision 1.1  2005/03/08 14:13:59  jpm
136
* Ajout des fichiers de configuration de Herbier.
137
*
138
*
139
* +-- Fin du code ----------------------------------------------------------------------------------------+
140
*/
141
?>