Subversion Repositories eFlore/Applications.bibliobota

Compare Revisions

Ignore whitespace Rev 28 → Rev 29

/tags/2015_03_02/configuration/bb_config_url.inc.php
New file
0,0 → 1,88
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Biblio Bota. |
// | |
// | Foobar is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | Foobar is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bb_config_url.inc.php,v 1.3 2007-02-13 17:40:49 jp_milcent Exp $
/**
* Configuration générale des url des applications de Biblio Bota
*
* Ce fichier permet de stocker les valeurs concernant les url communes aux différentes applications
* constituant Biblio Bota.
*
*@package BiblioBota
*@subpackage Configuration
//Auteur original :
*@author Jean-Pascal MILENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.3 $ $Date: 2007-02-13 17:40:49 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// +------------------------------------------------------------------------------------------------------+
// Définition des URL
$GLOBALS['_BIBLIOBOTA_']['url'] = $GLOBALS['_GEN_commun']['url'];
 
// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments.
//ini_set('arg_separator.output', '&amp;');// Déjà défini dans Papyrus
/** Constante stockant l'url de base de l'application.*/
define('BB_URL_COURANTE', $GLOBALS['_GEN_commun']['url']->getUrl());
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_admin');
/** Constante stockant l'url de base et un argument appelant l'application bb_admin de Biblio Bota.*/
define('BB_URL_COURANTE_ADMIN', $GLOBALS['_GEN_commun']['url']->getUrl());
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
$GLOBALS['_GEN_commun']['url']->addQueryString('appli', 'bb_consultation');
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation de Biblio Bota.*/
define('BB_URL_COURANTE_CONSULTATION', $GLOBALS['_GEN_commun']['url']->getUrl());
$GLOBALS['_GEN_commun']['url']->addQueryString('consultation', 'avancee');
/** Constante stockant l'url de base et un argument appelant l'application bb_consultation en mode avancé de Biblio Bota.*/
define('BB_URL_COURANTE_CONSULTATION_AVANCEE', $GLOBALS['_GEN_commun']['url']->getUrl());
$GLOBALS['_GEN_commun']['url']->removeQueryString('consultation');
$GLOBALS['_GEN_commun']['url']->removeQueryString('appli');
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
define('BB_URL_I18N', $GLOBALS['_GEN_commun']['i18n']);
 
/** Constante stockant l'id de l'url de la page Papyrus contenant l'appli Organisme de BiblioBota.*/
define('BB_URL_APPLI_ORGA_ID', 245);
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2006/09/22 08:30:26 jp_milcent
* Utilisation de l'objet Pear Net_URL pour construire les url.
*
* Revision 1.1 2005/11/23 10:22:25 jp_milcent
* Ajout au dépot de l'application BiblioBota.
* Elle doit à terme migrer dans eFlore.
*
* Revision 1.1 2005/03/01 16:25:57 jpm
* Mise dans un fichier distinct des constantes d'url utilisant Net_URL de Pear.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>