Subversion Repositories Applications.papyrus

Rev

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

Rev 1087 Rev 1224
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm.php,v 1.3 2006-01-10 09:38:27 mathilde Exp $
2
// $Id: ezmlm.php,v 1.3.2.1 2007-02-16 10:43:43 alexandre_tb Exp $
3
//
3
//
4
// ezmlm.php - ezmlm-php v2.0
4
// ezmlm.php - ezmlm-php v2.0
5
// --------------------------------------------------------------
5
// --------------------------------------------------------------
6
// As the site that ezmlm-php was developed for grew, and grew
6
// As the site that ezmlm-php was developed for grew, and grew
7
// the old system used had to be bandaid fixed more, and more
7
// the old system used had to be bandaid fixed more, and more
Line 28... Line 28...
28
require_once("ezmlm-listinfo.php");
28
require_once("ezmlm-listinfo.php");
29
require_once("ezmlm-msgdisplay.php");
29
require_once("ezmlm-msgdisplay.php");
30
require_once("ezmlm-repondre.php");
30
require_once("ezmlm-repondre.php");
31
require_once("ezmlm-author.php");
31
require_once("ezmlm-author.php");
Line 32... Line 32...
32
 
32
 
Line 33... Line 33...
33
$GLOBALS['mois'] = array ('Janv', 'Fév', 'Mars', 'Avri', 'Mai', 'Juin', 'Juil', 'Août', 'Sept', 'Oct', 'Nov', 'Déc') ;
33
$GLOBALS['mois'] = array ('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre') ;
34
 
34
 
35
// CLASS: ezmlm_php
35
// CLASS: ezmlm_php
36
// the base class, contains common functions and the config
36
// the base class, contains common functions and the config
Line 268... Line 268...
268
        }
268
        }
269
        if (preg_match ('/UTF/i', $chaine)) $reg_exp = 'UTF-8' ;
269
        if (preg_match ('/UTF/i', $chaine)) $reg_exp = 'UTF-8' ;
270
        preg_match_all ("/=\?$reg_exp\?(Q|B)\?(.*?)\?=/i", $chaine, $match, PREG_PATTERN_ORDER)  ;
270
        preg_match_all ("/=\?$reg_exp\?(Q|B)\?(.*?)\?=/i", $chaine, $match, PREG_PATTERN_ORDER)  ;
271
        for ($i = 0; $i < count ($match[0]); $i++ ) {
271
        for ($i = 0; $i < count ($match[0]); $i++ ) {
Line 272... Line 272...
272
            
272
            
273
                if ($match[1][$i] == 'Q') {
273
                if (strtoupper($match[1][$i]) == 'Q') {
274
                    $decode = quoted_printable_decode ($match[2][$i]) ;
274
                    $decode = quoted_printable_decode ($match[2][$i]) ;
275
                } elseif ($match[1][$i] == 'B') {
275
                } elseif ($match[1][$i] == 'B') {
276
                    $decode = base64_decode ($match[2][$i]) ;
276
                    $decode = base64_decode ($match[2][$i]) ;
277
                }
277
                }