Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1335 → Rev 1336

/trunk/client/projet/classes/ezmlm-php-2.0/ezmlm.php
1,5 → 1,5
<?php
// $Id: ezmlm.php,v 1.4 2007-02-16 10:44:47 alexandre_tb Exp $
// $Id: ezmlm.php,v 1.5 2007-04-19 15:34:35 neiluj Exp $
//
// ezmlm.php - ezmlm-php v2.0
// --------------------------------------------------------------
30,7 → 30,7
require_once("ezmlm-repondre.php");
require_once("ezmlm-author.php");
 
$GLOBALS['mois'] = array ('Janv', 'Fév', 'Mars', 'Avri', 'Mai', 'Juin', 'Juil', 'Août', 'Sept', 'Oct', 'Nov', 'Déc') ;
$GLOBALS['mois'] = array ('Jan', 'Fév', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil', 'Août', 'Sept', 'Oct', 'Nov', 'Dèc') ;
 
// CLASS: ezmlm_php
// the base class, contains common functions and the config
72,11 → 72,11
// these variables act the same way ezmlm-php-config.php did in the first release
// simply edit these variables to match your setup
$this->listdir = "/home/telabotap/sd/testv4/client/synchroliste/liste/tela-botanica.org/equipe";
$this->listname = "equipe";
$this->listdomain = "tela-botanica.org";
$this->listdir = "";
$this->listname = "";
$this->listdomain = "";
$this->tempdir = "/home/telabotap/www/tmp";
$this->tempdir = "";
 
$this->sendheaders = TRUE;
$this->sendbody = TRUE;
254,7 → 254,7
if ($critical) { die; }
}
/**
* Parse une chaime et supprime les problême d'encodage de type ISO-4 ...
* Parse une chaime et supprime les problème d'encodage de type ISO-4 ...
*
* @return string
*/
263,6 → 263,7
if (preg_match ('/windows-[0-9][0-9][0-9][0-9]/i', $chaine, $nombre)) {
$reg_exp = $nombre[0] ;
$chaine = str_replace(' ', '', $chaine);
} else {
$reg_exp = 'ISO-8859-15?' ;
}
303,6 → 304,20
$date .= date(':i', strtotime($date_mail)) ; // Les minutes
return $date ;
}
/**
* Cette fonction renvoie le prefixe, cad 0 ou rien
* d un nom de message, ex : pour 09, on renvoie 0
* pour 12 on renvoie rien
*/
function prefixe_nom_message($nom) {
if (preg_match ('/0([1-9][0-9]*)/', $nom, $match)) {
$nom_fichier = $match[1];
return '0' ;
} else {
return '' ;
}
}
}
 
//