Subversion Repositories eFlore/Applications.bibliobota

Rev

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

Rev 12 Rev 20
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 Biblio Bota.                                                                    |
8
// | This file is part of Biblio Bota.                                                                    |
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: bb_config_url.inc.php,v 1.2 2006-09-22 08:30:26 jp_milcent Exp $
24
// CVS : $Id: bb_config_url.inc.php,v 1.3 2007-02-13 17:40:49 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 Biblio Bota.
29
* constituant Biblio Bota.
30
*
30
*
31
*@package BiblioBota
31
*@package BiblioBota
32
*@subpackage Configuration
32
*@subpackage Configuration
33
//Auteur original :
33
//Auteur original :
34
*@author        Jean-Pascal MILENT <jpm@tela-botanica.org>
34
*@author        Jean-Pascal MILENT <jpm@tela-botanica.org>
35
//Autres auteurs :
35
//Autres auteurs :
36
*@author        Aucun
36
*@author        Aucun
37
*@copyright     Tela-Botanica 2000-2005
37
*@copyright     Tela-Botanica 2000-2005
38
*@version       $Revision: 1.2 $ $Date: 2006-09-22 08:30:26 $
38
*@version       $Revision: 1.3 $ $Date: 2007-02-13 17:40:49 $
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
$GLOBALS['_BIBLIOBOTA_']['url'] = $GLOBALS['_GEN_commun']['url'];
-
 
49
 
48
// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments.
50
// 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
51
//ini_set('arg_separator.output', '&amp;');// Déjà défini dans Papyrus
50
/** Constante stockant l'url de base de l'application.*/
52
/** Constante stockant l'url de base de l'application.*/
51
define('BB_URL_COURANTE', $GLOBALS['_GEN_commun']['url']->getUrl());
53
define('BB_URL_COURANTE', $GLOBALS['_GEN_commun']['url']->getUrl());
52
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_admin');
54
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_admin');
53
/** Constante stockant l'url de base et un argument appelant l'application bb_admin de Biblio Bota.*/
55
/** Constante stockant l'url de base et un argument appelant l'application bb_admin de Biblio Bota.*/
54
define('BB_URL_COURANTE_ADMIN', $GLOBALS['_GEN_commun']['url']->getUrl().'&amp;appli=bb_admin');
56
define('BB_URL_COURANTE_ADMIN', $GLOBALS['_GEN_commun']['url']->getUrl());
55
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
57
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
56
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_consultation');
58
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_consultation');
57
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation de Biblio Bota.*/
59
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation de Biblio Bota.*/
58
define('BB_URL_COURANTE_CONSULTATION', $GLOBALS['_GEN_commun']['url']->getUrl().'&amp;appli=bb_consultation');
60
define('BB_URL_COURANTE_CONSULTATION', $GLOBALS['_GEN_commun']['url']->getUrl());
59
$GLOBALS['_GEN_commun']['url']->addQueryString('consultation', 'avancee');
61
$GLOBALS['_GEN_commun']['url']->addQueryString('consultation', 'avancee');
60
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation en mode avancé de Biblio Bota.*/
62
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation en mode avancé de Biblio Bota.*/
61
define('BB_URL_COURANTE_CONSULTATION_AVANCEE', $GLOBALS['_GEN_commun']['url']->getUrl().'&amp;appli=bb_consultation&amp;consultation=avancee');
63
define('BB_URL_COURANTE_CONSULTATION_AVANCEE', $GLOBALS['_GEN_commun']['url']->getUrl());
62
$GLOBALS['_GEN_commun']['url']->removeQueryString('consultation');
64
$GLOBALS['_GEN_commun']['url']->removeQueryString('consultation');
63
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
65
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
64
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
66
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
65
define('BB_URL_I18N', $GLOBALS['_GEN_commun']['i18n']);
67
define('BB_URL_I18N', $GLOBALS['_GEN_commun']['i18n']);
-
 
68
 
-
 
69
/** Constante stockant l'id de l'url de la page Papyrus contenant l'appli Organisme de BiblioBota.*/
-
 
70
define('BB_URL_APPLI_ORGA_ID', 245);
66
 
71
 
67
/* +--Fin du code ----------------------------------------------------------------------------------------+
72
/* +--Fin du code ----------------------------------------------------------------------------------------+
68
*
73
*
69
* $Log: not supported by cvs2svn $
74
* $Log: not supported by cvs2svn $
-
 
75
* Revision 1.2  2006/09/22 08:30:26  jp_milcent
-
 
76
* Utilisation de l'objet Pear Net_URL pour construire les url.
-
 
77
*
70
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
78
* Revision 1.1  2005/11/23 10:22:25  jp_milcent
71
* Ajout au dépot de l'application BiblioBota.
79
* Ajout au dépot de l'application BiblioBota.
72
* Elle doit à terme migrer dans eFlore.
80
* Elle doit à terme migrer dans eFlore.
73
*
81
*
74
* Revision 1.1  2005/03/01 16:25:57  jpm
82
* Revision 1.1  2005/03/01 16:25:57  jpm
75
* Mise dans un fichier distinct des constantes d'url utilisant Net_URL de Pear.
83
* Mise dans un fichier distinct des constantes d'url utilisant Net_URL de Pear.
76
*
84
*
77
*
85
*
78
* +-- Fin du code ----------------------------------------------------------------------------------------+
86
* +-- Fin du code ----------------------------------------------------------------------------------------+
79
*/
87
*/
80
?>
88
?>