1,5 → 1,5 |
<?php |
// $Id: ezmlm-listinfo.php,v 1.3 2007-04-19 15:34:35 neiluj Exp $ |
// $Id: ezmlm-listinfo.php,v 1.4 2008-08-25 15:22:48 alexandre_tb Exp $ |
// |
// ezmlm-listinfo.php - ezmlm-php v2.0 |
// -------------------------------------------------------------- |
46,7 → 46,7 |
} |
|
|
function show_recentmsgs($title = "Messages ràcents") { |
function show_recentmsgs($title = "Messages récents") { |
|
if (!is_dir($this->listdir.'/archive/0')) return false; |
|
65,6 → 65,8 |
|
$class = array ('ligne_paire', 'ligne_impaire') ; |
|
include_once 'ezmlm-parser.php'; |
|
while (list($key,$val) = each($recent)) { |
print '<tr class="'.$class[$ctc].'">'."\n"; |
//print '<td>'.$val->nummessage.'</td>' ; |
74,7 → 76,7 |
$decimal = (string) $key; |
if ($key >= 100) { |
$fichier_message = substr($decimal, -2) ; |
$repertoire_message = substr ($decimal, 0,count ($decimal) -2) ; |
$repertoire_message = substr ($decimal, 0,count ($decimal) -3) ; |
} else { |
if ($key < 10) { |
$fichier_message = '0'.$key; |
89,13 → 91,16 |
|
$from = $val[4]; |
|
print $this->makelink("action=show_author_msgs&actionargs[]=".$val[3],$this->decode_iso($this->protect_email($from,false))); |
print $this->makelink("action=show_author_msgs&actionargs[]=".$val[3],$this->decode_iso($this->protect_email($from,false))); |
print "</td>\n"; |
print '<td><b>'; |
$actionargs = preg_split("/\//", $val->msgfile); |
|
print $this->makelink("action=show_msg&actionargs[]=" . $repertoire_message . |
"&actionargs[]=" . $fichier_message ,$this->decode_iso($val[1])); |
$parser = new ezmlm_parser(); |
$mailDecode = $parser->parse_file_headers($this->listdir.'/archive/'.$repertoire_message.'/'.$fichier_message); |
if (preg_match('/multipart/', $mailDecode->headers['content-type'])) |
print '<img src="client/projet/images/piece_jointe.png" alt="Pièce jointe" />'; |
print $this->makelink("action=show_msg&actionargs[]=" . $repertoire_message . |
"&actionargs[]=" . $fichier_message , $this->decode_iso($mailDecode->headers['subject']) /* $this->decode_iso($val[1]) */); |
|
print "</b></td>\n"; |
|