Subversion Repositories Applications.projet

Rev

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

Rev 94 Rev 165
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.4 2007-02-16 10:44:47 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 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
                }