Subversion Repositories Applications.projet

Rev

Rev 58 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 431
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 
-
 
25
*
-
 
26
*@package bazar
-
 
27
//Auteur original :
4
* Description :
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
-
 
29
*
5
*
-
 
6
* @package projet
-
 
7
// Auteur principal : 
30
*@copyright     Tela-Botanica 2000-2004
8
* @author Grégoire Duché <gregoire@tela-botanica.org>
-
 
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
*/
Line 34... Line 14...
34
 
14
 
35
// +------------------------------------------------------------------------------------------------------+
15
// +------------------------------------------------------------------------------------------------------+
36
// |                                            ENTETE du PROGRAMME                                       |
16
// |                                            ENTETE du PROGRAMME                                       |
Line 37... Line 17...
37
// +------------------------------------------------------------------------------------------------------+
17
// +------------------------------------------------------------------------------------------------------+
38
 
18
 
Line 39... Line 19...
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
 
Line 42... Line 22...
42
// +------------------------------------------------------------------------------------------------------+
22
// +------------------------------------------------------------------------------------------------------+
43
// |                                            CORPS DU PROGRAMME                                        |
-
 
44
// +------------------------------------------------------------------------------------------------------+
-
 
45
 
-
 
46
if (isset($_GET['domaine'])) { 
-
 
47
	$domaine=$_GET['domaine'];
-
 
48
}
-
 
49
else {
-
 
50
	$domaine='';
-
 
51
}
-
 
52
if (isset($_GET['nbitem'])) { 
-
 
53
	$nbitem=$_GET['nbitem'];
-
 
54
}
-
 
55
else {
-
 
56
	$nbitem='';
-
 
57
}
-
 
58
if (isset($_GET['liste'])) { 
-
 
59
	$liste=$_GET['liste'];
-
 
Line -... Line 23...
-
 
23
// |                                            CORPS DU PROGRAMME                                        |
-
 
24
// +------------------------------------------------------------------------------------------------------+
-
 
25
 
-
 
26
function afficherContenuCorps() {
-
 
27
	
60
}
28
	// Sélection de la page projet
-
 
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'.
-
 
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'.
-
 
35
						' group by p_id order by p_titre desc' ;
-
 
36
	$resultat_type = $GLOBALS['projet_db']->query($requete_type) or die('ERREUR BDD');
-
 
37
 
-
 
38
	ob_start();
-
 
39
	include_once('squelettes/rss.tpl.html');
Line 61... Line -...
61
else {
-
 
62
	$liste='';
-
 
63
}
-
 
64
 
-
 
65
echo html_entity_decode(gen_RSS($domaine, $nbitem, $liste));
-
 
66
 
-
 
67
 
-
 
68
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
69
*
-
 
70
* $Log: not supported by cvs2svn $
40
	$res = ob_get_contents();