| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
// declare(encoding='UTF-8');
|
| 3 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
| 4 |
// | PHP version 4.1 |
|
- |
|
| 5 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
| 6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
- |
|
| 7 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
| 8 |
// | This library is free software; you can redistribute it and/or |
|
- |
|
| 9 |
// | modify it under the terms of the GNU Lesser General Public |
|
- |
|
| 10 |
// | License as published by the Free Software Foundation; either |
|
- |
|
| 11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
- |
|
| 12 |
// | |
|
- |
|
| 13 |
// | This library is distributed in the hope that it will be useful, |
|
- |
|
| 14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
- |
|
| 15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
- |
|
| 16 |
// | Lesser General Public License for more details. |
|
- |
|
| 17 |
// | |
|
- |
|
| 18 |
// | You should have received a copy of the GNU Lesser General Public |
|
- |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
- |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
- |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
| 22 |
// CVS : $Id: projetRSS.php,v 1.2 2005-10-28 07:34:32 florian Exp $
|
- |
|
| 23 |
/**
|
3 |
/**
|
| 24 |
* Générateur de flux RSS à partir du bazar
|
4 |
* Description :
|
| 25 |
*
|
5 |
*
|
| 26 |
*@package bazar
|
6 |
* @package projet
|
| 27 |
//Auteur original :
|
7 |
// Auteur principal :
|
| 28 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
8 |
* @author Grégoire Duché <gregoire@tela-botanica.org>
|
| 29 |
*
|
- |
|
| 30 |
*@copyright Tela-Botanica 2000-2004
|
9 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
| - |
|
10 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
| 31 |
*@version $Revision: 1.2 $
|
11 |
* @version $$Id$$
|
| 32 |
// +------------------------------------------------------------------------------------------------------+
|
12 |
* @copyright 1999-2010 Tela Botanica (accueil@tela-botanica.org)
|
| 33 |
*/
|
13 |
*/
|
| 34 |
|
14 |
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
15 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
// | ENTETE du PROGRAMME |
|
16 |
// | ENTETE du PROGRAMME |
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
17 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
|
18 |
|
| 39 |
include_once 'configuration/projet.inc.php'; //fichier de configuration de Bazar
|
19 |
// inclure les fichiers de configuration de projet pour obtenir la connextion a la BDD
|
| 40 |
include_once 'bibliotheque/projet.fonct.rss.php'; //fichier des fonctions RSS de Bazar
|
20 |
include_once 'configuration/projet.config.inc.php';
|
| 41 |
|
21 |
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
// | CORPS DU PROGRAMME |
|
23 |
// | CORPS DU PROGRAMME |
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// +------------------------------------------------------------------------------------------------------+
|
| 45 |
|
25 |
|
| 46 |
if (isset($_GET['domaine'])) {
|
26 |
function afficherContenuCorps() {
|
| 47 |
$domaine=$_GET['domaine'];
|
- |
|
| 48 |
}
|
27 |
|
| 49 |
else {
|
- |
|
| 50 |
$domaine='';
|
28 |
// Sélection de la page projet
|
| 51 |
}
|
- |
|
| - |
|
29 |
$requete_projets = 'select p_id, p_titre, p_resume, pl_id_liste, plle_id_liste, p_avoir_document, ps_nombre_inscrit, ps_pourcent,'.
|
| - |
|
30 |
' p_wikini, ps_doc_derniere_semaine, p_avoir_document, ps_nombre_inscrit_derniere_semaine, '.
|
| - |
|
31 |
' ps_nombre_membre_yahoo, ps_msg_derniere_semaine, ps_modifwiki_derniere_semaine, p_en_dormance from'.
|
| 52 |
if (isset($_GET['nbitem'])) {
|
32 |
' projet left join projet_lien_liste on p_id=pl_id_projet'.
|
| - |
|
33 |
' left join projet_lien_liste_externe on p_id=plle_id_projet'.
|
| - |
|
34 |
' left join projet_statistiques on p_id=ps_ce_projet and ps_dernier=1'.
|
| 53 |
$nbitem=$_GET['nbitem'];
|
35 |
' group by p_id order by p_titre desc' ;
|
| - |
|
36 |
$resultat_type = $GLOBALS['projet_db']->query($requete_type) or die('ERREUR BDD');
|
| 54 |
}
|
37 |
|
| 55 |
else {
|
38 |
ob_start();
|
| 56 |
$nbitem='';
|
39 |
include_once('squelettes/rss.tpl.html');
|
| 57 |
}
|
- |
|
| 58 |
if (isset($_GET['liste'])) {
|
40 |
$res = ob_get_contents();
|
| 59 |
$liste=$_GET['liste'];
|
41 |
ob_end_clean();
|
| 60 |
}
|
42 |
|
| 61 |
else {
|
- |
|
| 62 |
$liste='';
|
43 |
return $res;
|
| 63 |
}
|
44 |
}
|
| 64 |
|
- |
|
| 65 |
echo html_entity_decode(gen_RSS($domaine, $nbitem, $liste));
|
- |
|
| 66 |
|
45 |
|
| 67 |
|
46 |
|
| 68 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
| 69 |
*
|
- |
|
| 70 |
* $Log: not supported by cvs2svn $
|
- |
|
| 71 |
* Revision 1.1 2005/10/25 13:50:34 alexandre_tb
|
- |
|
| 72 |
* version initiale
|
- |
|
| 73 |
*
|
- |
|
| 74 |
*
|
- |
|
| 75 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
| 76 |
*/
|
- |
|
| 77 |
?>
|
47 |
?>
|