Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 14 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1                                                                                      |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or                                        |
// | modify it under the terms of the GNU Lesser General Public                                           |
// | License as published by the Free Software Foundation; either                                         |
// | version 2.1 of the License, or (at your option) any later version.                                   |
// |                                                                                                      |
// | This library 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                                    |
// | Lesser General Public License for more details.                                                      |
// |                                                                                                      |
// | You should have received a copy of the GNU Lesser General Public                                     |
// | License along with this library; if not, write to the Free Software                                  |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: herbier_rss.php,v 1.6 2006-10-31 16:03:42 jp_milcent Exp $
/**
* Générateur de flux RSS pour les Herbiers 
*
*@package bazar
//Auteur original :
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
*
*@copyright     Tela-Botanica 2000-2006
*@version       $Revision: 1.6 $
// +------------------------------------------------------------------------------------------------------+
*/

// +------------------------------------------------------------------------------------------------------+
// |                                            ENTETE du PROGRAMME                                       |
// +------------------------------------------------------------------------------------------------------+
// Nous spécifions l'application à appeler.
if (!isset($_REQUEST['appli'])) {
    $_REQUEST['appli'] = 'hb_rss';
}
// Gestion de l'url d'appel des flux hors de Papyrus
// TODO : voir pourquoi le contenu de $GLOBALS['_HERBIER_']['rss']['url'] est vide dans hb_rss.php 
$chemin = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR);
$GLOBALS['_HERBIER_']['rss']['url'] = 'http://'.$_SERVER['HTTP_HOST'].$chemin.basename(__FILE__);

// +------------------------------------------------------------------------------------------------------+
// |                                            CORPS du PROGRAMME                                        |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier principal de Herbier.*/
require_once 'herbier.php';
if (!defined('PAP_VERSION')) {
        echo afficherContenuCorps();
}
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.5  2006/10/31 15:33:15  jp_milcent
* Gestion d'un rendu XHTML pour Papyrus.
*
* Revision 1.4  2006/10/31 15:19:15  jp_milcent
* Amélioration de la gestion des Herbiers hors de Papyrus.
*
* Revision 1.3  2006/10/31 15:06:43  jp_milcent
* Fin de gestion des flux rss.
*
* Revision 1.2  2006/10/31 10:31:36  jp_milcent
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
*
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
* Début gestion des flux rss.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/

?>