Subversion Repositories Applications.papyrus

Rev

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

Rev 1224 Rev 1257
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm.php,v 1.3.2.1 2007-02-16 10:43:43 alexandre_tb Exp $
2
// $Id: ezmlm.php,v 1.3.2.2 2007-03-13 11:04:46 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 261... Line 261...
261
    
261
    
Line 262... Line 262...
262
    function decode_iso ($chaine) {
262
    function decode_iso ($chaine) {
263
        
263
        
-
 
264
        if (preg_match ('/windows-[0-9][0-9][0-9][0-9]/i', $chaine, $nombre)) {
264
        if (preg_match ('/windows-[0-9][0-9][0-9][0-9]/i', $chaine, $nombre)) {
265
            $reg_exp = $nombre[0] ;
265
            $reg_exp = $nombre[0] ;
266
            $chaine = str_replace(' ', '', $chaine);
266
        } else {
267
        } else {
267
            $reg_exp = 'ISO-8859-15?' ;
268
            $reg_exp = 'ISO-8859-15?' ;
268
        }
269
        }
Line 301... Line 302...
301
            $date .= date('g', strtotime($date_mail)) ;
302
            $date .= date('g', strtotime($date_mail)) ;
302
        }
303
        }
303
        $date .= date(':i', strtotime($date_mail)) ;    // Les minutes
304
        $date .= date(':i', strtotime($date_mail)) ;    // Les minutes
304
        return $date ;
305
        return $date ;
305
    }
306
    }
-
 
307
    
-
 
308
    /** 
-
 
309
     * Cette fonction renvoie le prefixe, cad 0 ou rien
-
 
310
     * d un nom de message, ex : pour 09, on renvoie 0
-
 
311
     * pour 12 on renvoie rien
-
 
312
     */
-
 
313
    function prefixe_nom_message($nom) {
-
 
314
    	if (preg_match ('/0([1-9][0-9]*)/', $nom, $match)) {
-
 
315
			$nom_fichier = $match[1];
-
 
316
			return '0' ;
-
 
317
		} else {
-
 
318
			return '' ;
-
 
319
		}
-
 
320
    }
306
}
321
}
Line 307... Line 322...
307
 
322
 
308
//
323
//
309
// --- END OF CLASS DEFINITION ---
324
// --- END OF CLASS DEFINITION ---