| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| - |
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
| - |
|
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 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 |
// | General Public License for more details. |
|
| - |
|
17 |
// | |
|
| - |
|
18 |
// | You should have received a copy of the GNU 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 $
|
| - |
|
23 |
/**
|
| - |
|
24 |
* Application projet
|
| 2 |
|
25 |
*
|
| - |
|
26 |
* Action forums
|
| - |
|
27 |
*
|
| - |
|
28 |
*@package projet
|
| - |
|
29 |
//Auteur original :
|
| - |
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
| - |
|
31 |
//Autres auteurs :
|
| - |
|
32 |
*@author Aucun
|
| - |
|
33 |
*@copyright Tela-Botanica 2000-2008
|
| - |
|
34 |
*@version $Revision: 1.4 $
|
| - |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| - |
|
36 |
*/
|
| 3 |
include_once 'ezmlm-php-2.0/ezmlm.php' ;
|
37 |
include_once 'ezmlm-php-2.0/ezmlm.php' ;
|
| Line 4... |
Line 38... |
| 4 |
|
38 |
|
| 5 |
|
39 |
|
| Line 15... |
Line 49... |
| 15 |
if ($id_rep =='' || $num_message == '') exit();
|
49 |
if ($id_rep =='' || $num_message == '') exit();
|
| Line 16... |
Line 50... |
| 16 |
|
50 |
|
| Line -... |
Line 51... |
| - |
|
51 |
|
| - |
|
52 |
$html = $message->display ($id_rep.'/'.$num_message) ;
|
| - |
|
53 |
|
| 17 |
|
54 |
$num = split (':', file_get_contents($message->listdir.'/num'));
|
| Line 18... |
Line 55... |
| 18 |
$html = $message->display ($id_rep.'/'.$num_message) ;
|
55 |
$numero_dernier_message = $num[0];
|
| Line 19... |
Line 56... |
| 19 |
|
56 |
|
| Line 33... |
Line 70... |
| 33 |
|
70 |
|
| Line 34... |
Line 71... |
| 34 |
|
71 |
|
| - |
|
72 |
$xml .= XML_Util::createStartElement ('ezmlm_message', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
|
| - |
|
73 |
|
| - |
|
74 |
$xml .= "\n".'<![CDATA[ '.$html.']]>';
|
| - |
|
75 |
$xml .= XML_Util::createStartElement ('numero', array ('total_message' => $numero_dernier_message));
|
| 35 |
$xml .= XML_Util::createStartElement ('ezmlm_message', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
|
76 |
$xml .= ($id_rep == 0 ? '': $id_rep).$num_message;
|
| 36 |
|
77 |
$xml .= XML_Util::createEndElement('numero');
|
| 37 |
$xml .= "\n".'<![CDATA[ '.$html.']]>';
|
78 |
|
| 38 |
$info_suivant = $message->getInfoSuivant() ;
|
79 |
$info_suivant = $message->getInfoSuivant() ;
|
| Line 45... |
Line 86... |
| 45 |
$xml .= XML_Util::createEndElement('message_precedent') ;
|
86 |
$xml .= XML_Util::createEndElement('message_precedent') ;
|
| Line 46... |
Line 87... |
| 46 |
|
87 |
|
| 47 |
$xml .= XML_Util::createEndElement('ezmlm_message') ;
|
88 |
$xml .= XML_Util::createEndElement('ezmlm_message') ;
|
| 48 |
header ('Content-type: text/xml');
|
89 |
header ('Content-type: text/xml');
|
| - |
|
90 |
echo $xml ;
|
| - |
|
91 |
|
| - |
|
92 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
93 |
*
|
| - |
|
94 |
* $Log: not supported by cvs2svn $
|
| - |
|
95 |
*
|
| - |
|
96 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
| 49 |
echo $xml ;
|
97 |
*/
|