</th>
</tr>
<?php
-foreach ($news['headdisp'] as $nick => $real) {
+foreach ($news['headdisp'] as $nick) {
if (isset($post->headers->$nick))
- echo "<tr><td class=\"{$css['bicoltitre']}\">$real</td>"
+ echo "<tr><td class=\"{$css['bicoltitre']}\">{$locale['headers'][$nick]}</td>"
."<td>".formatdisplayheader($nick,$post->headers->$nick,$spool)
."</td></tr>\n";
}
'Newsgroups' => 'newsgroups',
'Followup-To' => 'followup',
'Date' => 'date',
+ 'Message-ID' => 'msgid',
'Organization' => 'organization',
'References' => 'references',
'X-Face' => 'xface',
);
+// headers in article.php
+$news['headdisp']=array(
+ 'from',
+ 'subject',
+ 'newsgroups',
+ 'followup',
+ 'date',
+ 'organization',
+ 'references',
+ 'xface'
+);
+
// overview configuration in article.php
$news['threadtop'] = 5;
$news['threadbottom'] = 5;
."HTTP-Posting-Host: ".gethostbyname($_SERVER['REMOTE_ADDR'])."\n"
."User-Agent: Banana 0.7beta\n";
+$css = array(
+ 'bananashortcuts' => 'bananashortcuts',
+ 'title' => 'title',
+ 'bicol' => 'bicol',
+ 'bicoltitre' => 'bicoltitre',
+ 'bicolvpadd' => 'bicolvpadd',
+ 'pair' => 'pair',
+ 'impair' => 'impair',
+ 'bouton' => 'bouton',
+ 'error' => 'error',
+ 'normal' => 'normal',
+ 'total' => 'total',
+ 'unread' => 'unread',
+ 'group' => 'group',
+ 'description' => 'description',
+ 'date' => 'date',
+ 'subject' => 'subject',
+ 'from' => 'from',
+ 'author' => 'author',
+ 'nopadd' => 'nopadd',
+ 'overview' => 'overview',
+ 'tree' => 'tree'
+);
?>
'back' => 'Retour au <a href="index.php">profil</a>'
);
+$locale['headers'] = array(
+ 'from' => 'De',
+ 'subject' => 'Sujet',
+ 'newsgroups' => 'Forums',
+ 'followup' => 'Suivi-A',
+ 'date' => 'Date',
+ 'organization' => 'Organisation',
+ 'references' => 'Références',
+ 'xface' => 'Image'
+);
+
?>