Subversion Repositories Applications.projet

Rev

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

Rev 165 Rev 208
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm.php,v 1.4 2007-02-16 10:44:47 alexandre_tb Exp $
2
// $Id: ezmlm.php,v 1.5 2007-04-19 15:34:35 neiluj 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 ('Jan', 'Fév', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil', 'Août', 'Sept', 'Oct', 'Nov', 'Dèc') ;
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 70... Line 70...
70
		
70
		
71
		// USER-CONFIG section
71
		// USER-CONFIG section
72
		// these variables act the same way ezmlm-php-config.php did in the first release
72
		// these variables act the same way ezmlm-php-config.php did in the first release
Line 73... Line 73...
73
		// simply edit these variables to match your setup
73
		// simply edit these variables to match your setup
74
                                
74
                                
75
		$this->listdir		= "/home/telabotap/sd/testv4/client/synchroliste/liste/tela-botanica.org/equipe";
75
		$this->listdir		= "";
Line 76... Line 76...
76
		$this->listname		= "equipe";
76
		$this->listname		= "";
Line 77... Line 77...
77
		$this->listdomain	= "tela-botanica.org";
77
		$this->listdomain	= "";
78
	
78
	
79
		$this->tempdir		= "/home/telabotap/www/tmp";
79
		$this->tempdir		= "";
80
 
80
 
Line 252... Line 252...
252
		print "</table>\n\n";
252
		print "</table>\n\n";
Line 253... Line 253...
253
 
253
 
254
		if ($critical) { die; }
254
		if ($critical) { die; }
255
	}
255
	}
256
    /**
256
    /**
257
     *  Parse une chaime et supprime les problême d'encodage de type ISO-4 ...
257
     *  Parse une chaime et supprime les problème d'encodage de type ISO-4 ...
258
     *
258
     *
259
     * @return string
259
     * @return string
Line 260... Line 260...
260
     */
260
     */
Line 261... Line 261...
261
    
261
    
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?' ;
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 ---