Subversion Repositories Applications.projet

Rev

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

Rev 314 Rev 356
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: messages_mois.php,v 1.3 2008-08-25 15:24:09 alexandre_tb Exp $
22
// CVS : $Id: messages_mois.php,v 1.4 2008-11-04 17:11:10 aperonnet Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Action forums
26
* Action forums
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2008
33
*@copyright     Tela-Botanica 2000-2008
34
*@version       $Revision: 1.3 $
34
*@version       $Revision: 1.4 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 47... Line 47...
47
$info->listdomain = $domaine ;
47
$info->listdomain = $domaine ;
Line 48... Line 48...
48
 
48
 
-
 
49
 
49
 
50
 
Line 50... Line 51...
50
 
51
/** Calcul du cache */
51
/** Calcul du cache */
52
 
Line 67... Line 68...
67
	
68
	
68
} else {
69
} else {
69
	include_once 'XML/Util.php' ;
70
	include_once 'XML/Util.php' ;
Line 70... Line -...
70
	$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
-
 
71
	
71
	$xml = XML_Util::getXMLDeclaration('1.0', 'ISO-8859-15', 'no') ;
72
	ob_start() ;
72
	
73
	$html = $info->show_month($actionargs[0]);
73
	$html = $info->show_month($actionargs[0]);
74
	if (!$html) {
74
	if (!$html) {
75
		$xml .= XML_Util::createStartElement ('ezmlm_erreur', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
75
		$xml .= XML_Util::createStartElement ('ezmlm_erreur', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
76
    	$xml .= '<![CDATA[Les fichiers de la liste ne sont pas visibles sur le serveur]]>';
-
 
77
    	$xml .= XML_Util::createEndElement('ezmlm_erreur') ;	
-
 
78
	}
76
    	$xml .= '<![CDATA[ \'Les fichiers de la liste ne sont pas visibles sur le serveur\']]>';
79
	$html = ob_get_contents() ;
77
    	$xml .= XML_Util::createEndElement('ezmlm_erreur') ;	
80
	ob_end_clean() ;
-
 
81
	$xml .= XML_Util::createStartElement ('ezmlm_messages_mois', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
-
 
Line -... Line 78...
-
 
78
	} else {
-
 
79
		$xml .= XML_Util::createStartElement ('ezmlm_messages_mois', array('domaine' => $domaine, 'liste' => $liste, 'langue' => $langue)) ;
82
 
80
	
83
	$xml .= '<![CDATA[ '.$html.']]>';
81
		$xml .= '<![CDATA[ '.$html.']]>';
-
 
82
		
84
	
83
		$xml .= XML_Util::createEndElement('ezmlm_messages_mois') ;
85
	$xml .= XML_Util::createEndElement('ezmlm_messages_mois') ;
84
		$Cache_Lite->save($xml);
86
	$Cache_Lite->save($xml);
85
	}
Line 87... Line 86...
87
}
86
}
88
header ('Content-type: text/xml');
87
header ('Content-type: text/xml');
89
echo $xml ;
88
echo $xml ;
-
 
89
 
-
 
90
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
91
*
90
 
92
* $Log: not supported by cvs2svn $
91
/* +--Fin du code ----------------------------------------------------------------------------------------+
93
* Revision 1.3  2008-08-25 15:24:09  alexandre_tb
92
*
94
* ajout de la gestion du cache
93
* $Log: not supported by cvs2svn $
95
*