Subversion Repositories Applications.papyrus

Rev

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

Rev 1253 Rev 1305
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: ezmlm-parser.php,v 1.2.4.2 2007-04-11 12:30:50 alexandre_tb Exp $
-
 
23
/**
-
 
24
* Application projet
-
 
25
*
-
 
26
* classe ezmlm_parser pour lire les fichiers d index de ezmlm-idx
-
 
27
*
-
 
28
*@package projet
-
 
29
//Auteur original : ?? recupere dans ezmlm-php
-
 
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
-
 
31
*@copyright     Tela-Botanica 2000-2004
-
 
32
*@version       $Revision: 1.2.4.2 $
-
 
33
// +------------------------------------------------------------------------------------------------------+
-
 
34
*/
-
 
35
 
-
 
36
 
-
 
37
// +------------------------------------------------------------------------------------------------------+
-
 
38
// |                                            ENTETE du PROGRAMME                                       |
-
 
39
// +------------------------------------------------------------------------------------------------------+
-
 
40
 
2
// $Id: ezmlm-parser.php,v 1.2.4.1 2007-03-12 11:22:12 alexandre_tb Exp $
41
// $Id: ezmlm-parser.php,v 1.2.4.2 2007-04-11 12:30:50 alexandre_tb Exp $
3
//
42
//
4
// ezmlm-parser.php - ezmlm-php v2.0
-
 
5
// --------------------------------------------------------------
-
 
6
// Contains all the code for parsing messages.
-
 
7
// It handles all the nessesary decoding, attachments, etc...
-
 
8
// Note this does all the parsing itself now removing the dependancy
-
 
9
// on the mailparse library (as it looks like it will never make
-
 
10
// it into the official inclusion with PHP)...
-
 
11
// --------------------------------------------------------------
-
 
Line 12... Line 43...
12
 
43
 
13
require_once("ezmlm.php");
44
require_once("ezmlm.php");
14
require_once("Mail/mimeDecode.php") ;
45
require_once("Mail/mimeDecode.php") ;
15
// CLASS: ezmlm-parser
46
// CLASS: ezmlm-parser
Line 31... Line 62...
31
 
62
 
Line 32... Line 63...
32
	var $msgfile;		// if parsed from a file, this is the filename...
63
	var $msgfile;		// if parsed from a file, this is the filename...
Line -... Line 64...
-
 
64
 
33
 
65
	// functions
-
 
66
 
-
 
67
	/**
-
 
68
     * recent_msgs renvoie les derniers messages de la liste de discussion
-
 
69
     * ezmlm
-
 
70
     *
-
 
71
     * (
-
 
72
     * [0] => Array
-
 
73
     *   (
-
 
74
     *       [1] => sujet
-
 
75
     *       [2] => date en anglais
-
 
76
     *       [3] => le hash de l auteur
-
 
77
     *       [4] => l auteur
-
 
78
     *   )
-
 
79
     * [1] => ...
-
 
80
     * )
-
 
81
     * @param	int	le nombre de message a renvoye
34
	// functions
82
     * @return array	un tableau contenant les messages
Line 35... Line 83...
35
 
83
     * @access public
Line 36... Line 84...
36
	// recent_msgs - parses and returns an arbitrary number of the most recent messages
84
     */
Line 100... Line 148...
100
									$match_deuxieme_ligne[1].' '.$match_deuxieme_ligne[2].' '.$match_deuxieme_ligne[3], 
148
									$match_deuxieme_ligne[1].' '.$match_deuxieme_ligne[2].' '.$match_deuxieme_ligne[3], 
101
									$match_deuxieme_ligne[5], 
149
									$match_deuxieme_ligne[5], 
102
									$match_deuxieme_ligne[6]);
150
									$match_deuxieme_ligne[6]);
103
				}
151
				}
104
			}
152
			}
-
 
153
		} else {
-
 
154
			// Si le nombre de message est > $show on limite le tableau de retour
-
 
155
			$tableau_message = array_slice($tableau_message, 0, $show, true);
105
		}
156
		}
Line 106... Line 157...
106
			
157
			
107
		
158
		
Line 108... Line 159...
108
		return ($tableau_message) ;
159
		return $tableau_message ;
109
	}
160
	}