Subversion Repositories Applications.projet

Rev

Rev 249 | Rev 356 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 249 Rev 316
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 9... Line 43...
9
$info->forcehref = $url;
43
$info->forcehref = $url;
10
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
44
$info->listdir = '/home/vpopmail/domains/'.$domaine.'/'.$liste ;
11
$info->listname = $liste;
45
$info->listname = $liste;
12
$info->listdomain = $domaine ;
46
$info->listdomain = $domaine ;
Line -... Line 47...
-
 
47
 
-
 
48
include_once 'XML/Util.php' ;
-
 
49
 
-
 
50
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
-
 
51
 
-
 
52
if (!file_exists($info->listdir.'/num')) {
-
 
53
	$xml .= XML_Util::createStartElement ('ezmlm_derniers_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
-
 
54
	$xml .= '<![CDATA[il n\'y a pas de messages dans cette liste pour le moment.]]>';
-
 
55
	$xml .= XML_Util::createEndElement('ezmlm_derniers_messages') ;
-
 
56
	header ('Content-type: text/xml');
-
 
57
	echo $xml;
-
 
58
	exit();
-
 
59
}
-
 
60
 
13
 
61
 
14
ob_start() ;
62
ob_start() ;
15
if (!$info->show_recentmsgs()) {
63
if (!$info->show_recentmsgs()) {
16
    if (!$info) {
64
    if (!$info) {
17
    	ob_end_clean() ;
65
    	ob_end_clean() ;
18
    	echo 'Les fichiers de la liste ne sont pas visible sur le serveur' ;	
66
    	echo 'Les fichiers de la liste ne sont pas visible sur le serveur' ;
19
    	exit();	
67
    	exit();
20
    }
68
    }
21
}
69
}
22
$html = ob_get_contents() ;
70
$html = ob_get_contents() ;
Line 23... Line -...
23
ob_end_clean() ;
-
 
24
 
-
 
25
include_once 'XML/Util.php' ;
-
 
Line 26... Line 71...
26
 
71
ob_end_clean() ;
Line 27... Line 72...
27
$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
72
 
Line 28... Line 73...
28
 
73
 
29
$xml .= XML_Util::createStartElement ('ezmlm_derniers_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
74
$xml .= XML_Util::createStartElement ('ezmlm_derniers_messages', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
30
 
75
 
-
 
76
$xml .= '<![CDATA[ '.$html.']]>';
-
 
77
 
-
 
78
$xml .= XML_Util::createEndElement('ezmlm_derniers_messages') ;
-
 
79
header ('Content-type: text/xml');
-
 
80
echo $xml ;
-
 
81
 
-
 
82
/* +--Fin du code ----------------------------------------------------------------------------------------+
31
$xml .= '<![CDATA[ '.$html.']]>';
83
*