Subversion Repositories Applications.projet

Rev

Rev 359 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
208 neiluj 1
<?php
327 alexandre_ 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
// +------------------------------------------------------------------------------------------------------+
359 aperonnet 22
// CVS : $Id: messages_thread.php,v 1.5 2008-11-19 09:28:45 aperonnet Exp $
327 alexandre_ 23
/**
24
* Application projet
25
*
26
* Renvoie les messages d un thread
27
*
28
*@package projet
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@copyright     Tela-Botanica 2000-2008
359 aperonnet 32
*@version       $Revision: 1.5 $
327 alexandre_ 33
// +------------------------------------------------------------------------------------------------------+
34
*/
208 neiluj 35
include_once 'ezmlm-php-2.0/ezmlm.php' ;
36
 
417 raphael 37
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT);
38
// extract($_GET); // PHP-5.4, sans register_globals
208 neiluj 39
 
40
// Parametrage de la liste
41
$info = new ezmlm_threads();
42
if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
43
$info->forcehref = $url;
44
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
45
$info->listname = $liste;
46
$info->listdomain = $domaine ;
47
$info->tempdir = '/home/vpopmail/www/tmp' ;
359 aperonnet 48
$html = $info->load($actionargs[0]) ;
49
if (!$html) {
208 neiluj 50
    if (!$info) return 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
51
}
52
 
53
include_once 'XML/Util.php' ;
54
 
55
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
56
 
57
$xml .= XML_Util::createStartElement ('ezmlm_messages_thread', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
58
 
59
$xml .= '<![CDATA[ '.$html.']]>';
60
 
61
$xml .= XML_Util::createEndElement('ezmlm_messages_thread') ;
62
header ('Content-type: text/xml');
63
echo $xml ;
327 alexandre_ 64
/* +--Fin du code ----------------------------------------------------------------------------------------+
65
*
66
* $Log: not supported by cvs2svn $
359 aperonnet 67
* Revision 1.4  2008-11-04 17:11:10  aperonnet
68
* correction de bugs dans la liste des derniers messages
69
*
356 aperonnet 70
* Revision 1.3  2008-08-26 09:26:41  alexandre_tb
71
* ajout commentaire
327 alexandre_ 72
*
356 aperonnet 73
*
327 alexandre_ 74
* +-- Fin du code ----------------------------------------------------------------------------------------+
75
*/
356 aperonnet 76
?>