Subversion Repositories eFlore/Archives.herbiers

Compare Revisions

Ignore whitespace Rev 14 → Rev 15

/trunk/applications/hb_rss/hb_rss.php
19,7 → 19,7
// | 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: hb_rss.php,v 1.6 2006-10-31 15:33:15 jp_milcent Exp $
// CVS : $Id: hb_rss.php,v 1.7 2006-10-31 16:03:42 jp_milcent Exp $
/**
* Générateur de flux RSS pour les Herbiers
*
29,7 → 29,7
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*
*@copyright Tela-Botanica 2000-2006
*@version $Revision: 1.6 $ $Date: 2006-10-31 15:33:15 $
*@version $Revision: 1.7 $ $Date: 2006-10-31 16:03:42 $
// +------------------------------------------------------------------------------------------------------+
*/
 
46,7 → 46,7
define('HBR_RSS_WEBMASTER', 'jpm@tela-botanica.org') ; //Mail Webmaster du site
define('HBR_RSS_CATEGORIE', 'Botanique, Herbiers'); //catégorie du flux RSS
$GLOBALS['_HERBIER_']['rss']['flux'] = array('herbier', 'collection', 'equipe', 'note');
$GLOBALS['_HERBIER_']['rss']['url'] = new Net_URL('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
$GLOBALS['_HERBIER_']['rss']['url'] = new Net_URL('http://'.$_SERVER['HTTP_HOST'].'/client/herbier/herbier_rss.php');
// TODO : à mettre dans le fichier de langue
define('HBR_PAS_D_ANNONCES', 'Pas d\'annonce'); //Message pas d'annonce
 
166,7 → 166,7
$GLOBALS['_HERBIER_']['rss']['url']->addQueryString('type', $flux);
$aso_infos['link'] = str_replace('&', '&amp;', $GLOBALS['_HERBIER_']['rss']['url']->getURL());
$aso_infos['description'] = 'Flux RSS sur les '.$flux.'s.';
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 15:33:15 $'))));
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 16:03:42 $'))));
$tab_infos[] = $aso_infos;
}
}
187,11 → 187,11
function gen_XHTML($meta = '', $infos = '')
{
$xhtml = '<h1>'.$meta['titre'].'</h1>'."\n";
$xhtml = '<p>'.$meta['description'].'</p>'."\n";
$xhtml .= '<p>'.$meta['description'].'</p>'."\n";
$xhtml .= '<ul>'."\n";
foreach ($infos as $info) {
$xhtml .= '<li>'."\n";
$xhtml .= '<a href="'.$meta['link'].'"><strong>'.$info['title'].'</strong></a><br />'."\n";
$xhtml .= '<a href="'.$info['link'].'"><strong>'.$info['title'].'</strong></a><br />'."\n";
$xhtml .= $info['description']."\n";
$xhtml .= '</li>'."\n";
}
257,6 → 257,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.6 2006/10/31 15:33:15 jp_milcent
* Gestion d'un rendu XHTML pour Papyrus.
*
* Revision 1.5 2006/10/31 15:06:44 jp_milcent
* Fin de gestion des flux rss.
*
/trunk/herbier_rss.php
19,7 → 19,7
// | 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.5 2006-10-31 15:33:15 jp_milcent Exp $
// 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
*
29,7 → 29,7
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*
*@copyright Tela-Botanica 2000-2006
*@version $Revision: 1.5 $
*@version $Revision: 1.6 $
// +------------------------------------------------------------------------------------------------------+
*/
 
40,6 → 40,10
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 |
52,6 → 56,9
/* +--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.
*