d30e4c4ebc3e1440f11556258f071d89c8efc97a
[banana.git] / article.php
1 <?php
2 /********************************************************************************
3 * article.php : article page
4 * -------------
5 *
6 * This file is part of the banana distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
9
10 require_once("include/banana.inc.php");
11 require_once("include/header.inc.php");
12
13 if (isset($_REQUEST['group'])) {
14 $group = htmlentities(strtolower($_REQUEST['group']));
15 }
16 if (isset($_REQUEST['id'])) {
17 $id = htmlentities(strtolower($_REQUEST['id']));
18 }
19
20 echo $banana->action_showArticle($group, $id);
21
22 if (isset($_GET['type']) && $_GET['type']=='cancel' && $banana->post->checkcancel()) {
23 ?>
24 <p class="error">
25 <?php echo _b_('Voulez-vous vraiment annuler ce message ?'); ?>
26 </p>
27 <form action="thread.php" method="post">
28 <input type="hidden" name="group" value="<?php echo $group; ?>" />
29 <input type="hidden" name="id" value="<?php echo $id; ?>" />
30 <input type="hidden" name="type" value="cancel" />
31 <input type="submit" name="action" value="<?php echo _b_('OK'); ?>" />
32 </form>
33 <?
34 }
35
36 require_once("include/footer.inc.php");
37 ?>