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 1228
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: ezmlm-listinfo.php,v 1.2 2005-09-27 16:43:08 alexandre_tb Exp $
2
// $Id: ezmlm-listinfo.php,v 1.2.4.1 2007-02-16 13:36:51 alexandre_tb Exp $
3
//
3
//
4
// ezmlm-listinfo.php - ezmlm-php v2.0
4
// ezmlm-listinfo.php - ezmlm-php v2.0
5
// --------------------------------------------------------------
5
// --------------------------------------------------------------
6
// Displays general list info in the format of a welcome page.
6
// Displays general list info in the format of a welcome page.
7
// --------------------------------------------------------------
7
// --------------------------------------------------------------
Line 68... Line 68...
68
            print "</td>\n";
68
            print "</td>\n";
69
            print '<td><b>';
69
            print '<td><b>';
70
            $actionargs = preg_split("/\//", $val->msgfile);
70
            $actionargs = preg_split("/\//", $val->msgfile);
71
            if (count ($actionargs) > 2) {
71
            if (count ($actionargs) > 2) {
72
                print $this->makelink("action=show_msg&actionargs[]=" .  $actionargs[(count($actionargs) - 2)] . 
72
                print $this->makelink("action=show_msg&actionargs[]=" .  $actionargs[(count($actionargs) - 2)] . 
73
                                "&actionargs[]=" .  $actionargs[(count($actionargs) - 1)] ,$this->decode_iso($val->headers['subject']));
73
                                "&actionargs[]=" .  $actionargs[(count($actionargs) - 1)] ,$this->decode_iso(str_replace(' ', '', $val->headers['subject'])));
74
            }
74
            }
75
            print "</b></td>\n";
75
            print "</b></td>\n";
Line 76... Line 76...
76
            
76
            
77
            print '<td>'.$this->date_francaise($val->headers['date']).'</td>'."\n";
77
            print '<td>'.$this->date_francaise($val->headers['date']).'</td>'."\n";
Line 116... Line 116...
116
                $multiplicateur = (int) ($i / 100) ;
116
                $multiplicateur = (int) ($i / 100) ;
117
                // pour les nails > 99, on retranche n fois 100, ex 256 => 56 cad 256 - 2 * 100 
117
                // pour les nails > 99, on retranche n fois 100, ex 256 => 56 cad 256 - 2 * 100 
118
                $i = $i - $multiplicateur * 100 ;
118
                $i = $i - $multiplicateur * 100 ;
119
            }
119
            }
120
            if ($i < 10) $num_message = '0'.$i ; else $num_message = $i ;
120
            if ($i < 10) $num_message = '0'.$i ; else $num_message = $i ;
-
 
121
           if (file_exists($this->listdir.'/archive/'.$repertoire_premier_mail.'/'.$num_message)) { 
-
 
122
	            $mimeDecode = new Mail_mimeDecode(file_get_contents ($this->listdir.'/archive/'.$repertoire_premier_mail.'/'.$num_message)) ;
-
 
123
        	    $mailDecode = $mimeDecode->decode() ;
-
 
124
            	if ($i == 99) {
-
 
125
                	$repertoire_premier_mail++;
-
 
126
               	 $i = -1;
-
 
127
            	}
-
 
128
            
-
 
129
           	 print '<tr class="'.$class[$ctc].'">'."\n";
-
 
130
            	print '<td>'.$repertoire_premier_mail.$num_message.'</td><td>';
-
 
131
            	$hash = $this->makehash($mailDecode->headers['from']);
-
 
132
            
-
 
133
            	print $this->makelink("action=show_author_msgs&actionargs[]=" . $hash,$this->decode_iso($this->protect_email($mailDecode->headers['from'],TRUE)));
-
 
134
            	print "</td>\n";
-
 
135
            	print '<td><b>';
-
 
136
            	$actionargs[0] = $repertoire_premier_mail ;
-
 
137
            	$actionargs[1] = $num_message ;
Line 121... Line -...
121
            
-
 
122
            $mimeDecode = new Mail_mimeDecode(file_get_contents ($this->listdir.'/archive/'.$repertoire_premier_mail.'/'.$num_message)) ;
-
 
123
            $mailDecode = $mimeDecode->decode() ;
-
 
124
            if ($i == 99) {
-
 
125
                $repertoire_premier_mail++;
-
 
126
                $i = -1;
-
 
127
            }
-
 
128
            
-
 
129
            print '<tr class="'.$class[$ctc].'">'."\n";
-
 
130
            print '<td>'.$repertoire_premier_mail.$num_message.'</td><td>';
-
 
131
            $hash = $this->makehash($mailDecode->headers['from']);
-
 
132
            
-
 
133
            print $this->makelink("action=show_author_msgs&actionargs[]=" . $hash,$this->decode_iso($this->protect_email($mailDecode->headers['from'],TRUE)));
-
 
134
            print "</td>\n";
-
 
135
            print '<td><b>';
-
 
136
            $actionargs[0] = $repertoire_premier_mail ;
-
 
137
            $actionargs[1] = $num_message ;
-
 
138
            
138
            
139
            if (count ($actionargs) > 1) {
139
           	 if (count ($actionargs) > 1) {
140
                print $this->makelink("action=show_msg&actionargs[]=" .  $actionargs[(count($actionargs) - 2)] . 
140
                	print $this->makelink("action=show_msg&actionargs[]=" .  $actionargs[(count($actionargs) - 2)] . 
141
                                "&actionargs[]=" .  $actionargs[(count($actionargs) - 1)] ,$this->decode_iso($mailDecode->headers['subject']));
141
                                "&actionargs[]=" .  $actionargs[(count($actionargs) - 1)] ,$this->decode_iso($mailDecode->headers['subject']));
142
            }
142
            	}
143
            print "</b></td>\n";
143
            	print "</b></td>\n";
144
            print '<td>'.$this->date_francaise($mailDecode->headers['date']).'</td>'."\n";
144
           	 print '<td>'.$this->date_francaise($mailDecode->headers['date']).'</td>'."\n";
145
            print "</tr>\n";
145
            	print "</tr>\n";
146
            $ctc++;
146
            	$ctc++;
-
 
147
            	if ($ctc == 2) { $ctc = 0; }
147
            if ($ctc == 2) { $ctc = 0; }
148
		}
148
        }
149
        }
149
        print '</table>'."\n";
150
        print '</table>'."\n";
150
        return true;
151
        return true;
151
    }
152
    }