2 /********************************************************************************
3 * article.php : article page
6 * This file is part of the banana distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
10 require_once("include/banana.inc.php");
11 require_once("include/header.inc.php");
13 if (isset($_REQUEST['group'])) {
14 $group = htmlentities(strtolower($_REQUEST['group']));
16 if (isset($_REQUEST['id'])) {
17 $id = htmlentities(strtolower($_REQUEST['id']));
20 $banana->newSpool($group, $banana->profile
['display'], $banana->profile
['lastnews']);
21 $banana->nntp
->group($group);
23 $post = new BananaPost($id);
25 if ($banana->nntp
->lasterrorcode
== "423") {
26 $banana->spool
->delid($id);
31 $ndx = $banana->spool
->getndx($id);
34 <h1
><?php
echo _b_('Message'); ?
></h1
>
37 if (isset($_GET['type']) && ($_GET['type']=='cancel') && (checkcancel($post->headers
))) {
39 <p
class="<?php echo $css['error']?>">
40 <?php
echo _b_('Voulez-vous vraiment annuler ce message ?'); ?
>
42 <form action
="thread.php" method
="post">
43 <input type
="hidden" name
="group" value
="<?php echo $group; ?>" />
44 <input type
="hidden" name
="id" value
="<?php echo $id; ?>" />
45 <input type
="hidden" name
="type" value
="cancel" />
46 <input type
="submit" name
="action" value
="<?php echo _b_('OK'); ?>" />
54 <table
class="<?php echo $css['bicol']?>" cellpadding
="0" cellspacing
="0"
55 summary
="<?php echo _b_('Contenu du message'); ?>">
58 <?php
echo _b_('En-têtes'); ?
>
62 foreach ($banana->show_hdr
as $hdr) {
63 if (isset($post->headers
[$hdr])) {
64 $res = formatdisplayheader($hdr, $post->headers
[$hdr]);
66 echo "<tr><td class=\"{$css['bicoltitre']}\">".header_translate($hdr)."</td>"
67 ."<td>$res</td></tr>\n";
73 <?php
echo _b_('Corps'); ?
>
78 <pre
><?php
echo formatbody($post->body
); ?
></pre
>
83 <?php
echo _b_('Aperçu'); ?
>
87 <td
class="<?php echo $css['nopadd']?>" colspan
="2">
88 <table
class="<?php echo $css['overview']?>" cellpadding
="0"
89 cellspacing
="0" summary
="overview">
91 $banana->spool
->disp($ndx-$banana->tbefore
,$ndx+
$banana->tafter
,$ndx);
100 require_once("include/footer.inc.php");