Subversion Repositories Applications.papyrus

Rev

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

Rev 1087 Rev 1226
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm-author.php,v 1.2 2005-09-27 16:43:08 alexandre_tb Exp $
2
// $Id: ezmlm-author.php,v 1.2.4.1 2007-02-16 11:04:14 alexandre_tb Exp $
3
//
3
//
4
// ezmlm-author.php - ezmlm-php v2.0
4
// ezmlm-author.php - ezmlm-php v2.0
5
// --------------------------------------------------------------
5
// --------------------------------------------------------------
6
// Displays all messages by a given author
6
// Displays all messages by a given author
7
// --------------------------------------------------------------
7
// --------------------------------------------------------------
Line 22... Line 22...
22
		while (!feof($fd)) {
22
		while (!feof($fd)) {
23
			$buf = fgets($fd,4096);
23
			$buf = fgets($fd,4096);
24
			if (preg_match('/^' . $authorhash . '/', $buf)) {
24
			if (preg_match('/^' . $authorhash . '/', $buf)) {
25
				// this should ALWAYS be the first line in the file
25
				// this should ALWAYS be the first line in the file
26
				$author = preg_replace('/^' . $authorhash . ' /', '', $buf);
26
				$author = preg_replace('/^' . $authorhash . ' /', '', $buf);
27
                print '<h3>'.PROJET_MESSAGES_DE.$author.'</h3>' ;
27
                print '<h3>'.$author.'</h3>' ;
28
				print '<table class="table_cadre">'."\n";
28
				print '<table class="table_cadre">'."\n";
29
                print '<tr><th class="col1">De</th><th>Sujet</th><th>Date</th></tr>'."\n";
29
                print '<tr><th class="col1">De</th><th>Sujet</th><th>Date</th></tr>'."\n";
30
				$tableopened = TRUE;
30
				$tableopened = TRUE;
31
			} else if (preg_match('/^[0-9]*:[0-9]/',$buf)) {
31
			} else if (preg_match('/^[0-9]*:[0-9]/',$buf)) {
32
				// this is a valid message line
32
				// this is a valid message line