1,5 → 1,5 |
<?php |
// $Id: ezmlm-author.php,v 1.2 2005-09-27 16:43:08 alexandre_tb Exp $ |
// $Id: ezmlm-author.php,v 1.3 2007-04-19 15:34:35 neiluj Exp $ |
// |
// ezmlm-author.php - ezmlm-php v2.0 |
// -------------------------------------------------------------- |
14,7 → 14,7 |
//echo $file ; |
if (!is_file($this->listdir . $file)) { $this->error(EZMLM_INVALID_AUTHOR); return; } |
// Le fichier author comprend |
// Première ligne hash_auteur nom_auteur |
// première ligne hash_auteur nom_auteur |
// num_mess:annéemois:hash_sujet sujet |
$fd = @fopen($this->listdir . $file, "r"); |
$i = 0 ; |
24,13 → 24,12 |
if (preg_match('/^' . $authorhash . '/', $buf)) { |
// this should ALWAYS be the first line in the file |
$author = preg_replace('/^' . $authorhash . ' /', '', $buf); |
print '<h3>'.PROJET_MESSAGES_DE.$author.'</h3>' ; |
print '<h3>'.$author.'</h3>' ; |
print '<table class="table_cadre">'."\n"; |
print '<tr><th class="col1">De</th><th>Sujet</th><th>Date</th></tr>'."\n"; |
$tableopened = TRUE; |
} else if (preg_match('/^[0-9]*:[0-9]/',$buf)) { |
// this is a valid message line |
// all we need is the first item |
// si la ligne est valide |
// on récupère le numéro du message pour en extraire le nom du fichier |
$msgfile = preg_replace('/^([0-9]*):.*/', '\1', $buf); |
$msgdir = (int)((int)$msgfile / 100); |
56,16 → 55,11 |
$subject = preg_replace("/\[" . $this->listname . "\]/", "", $subject); |
$date = preg_replace ('/CEST/', '', $mailDecode->headers['date']); |
print '<tr class="'.$class[$i].'">'."\n"; |
|
$hash = $this->makehash($mailDecode->headers['from']); |
print '<td>'.$this->makelink("action=show_author_msgs&actionargs[]=" . $hash,$this->decode_iso($this->protect_email($mailDecode->headers['from'],TRUE))); |
if ($mailDecode->headers['from'] == '') $from = $mailDecode->headers['return-path'] ; else $from = $mailDecode->headers['from']; |
$hash = $this->makehash($from); |
print '<td>'.$this->makelink("action=show_author_msgs&actionargs[]=" . $hash,$this->decode_iso($this->protect_email($from,false))); |
print '</td>'; |
|
print "<td><b>" . $this->makelink("action=show_msg&actionargs[]=" . $msgdir . "&actionargs[]=" . $msgfile, $this->decode_iso($subject)) . "</b></td>"; |
/* |
print "<td>[" . $this->makelink("action=show_threads&actionargs[]=" . |
date("Ym", strtotime($date)) . "#" . urlencode("/archive/" . $msgdir . "/" . $msgfile), PROJET_FILE_DE_DISCUSSION) . "]</td>\n"; |
*/ |
print "<td>" . $this->date_francaise($mailDecode->headers['date']) . "</td>\n"; |
print "</tr>\n"; |
$i++; |