90962c86 |
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 | |
2dbc0167 |
10 | require_once("include/banana.inc.php"); |
0d407ce1 |
11 | require_once("include/header.inc.php"); |
90962c86 |
12 | |
84ca00bc |
13 | if (isset($_REQUEST['group'])) { |
2dbc0167 |
14 | $group = htmlentities(strtolower($_REQUEST['group'])); |
84ca00bc |
15 | } |
16 | if (isset($_REQUEST['id'])) { |
2dbc0167 |
17 | $id = htmlentities(strtolower($_REQUEST['id'])); |
84ca00bc |
18 | } |
90962c86 |
19 | |
65d96b1f |
20 | echo $banana->action_showArticle($group, $id); |
90962c86 |
21 | |
b9ea5b30 |
22 | if (isset($_GET['type']) && $_GET['type']=='cancel' && $banana->post->checkcancel()) { |
90962c86 |
23 | ?> |
41cf00eb |
24 | <p class="error"> |
0a65ec9d |
25 | <?php echo _b_('Voulez-vous vraiment annuler ce message ?'); ?> |
90962c86 |
26 | </p> |
641bfc1e |
27 | <form action="thread.php" method="post"> |
2dbc0167 |
28 | <input type="hidden" name="group" value="<?php echo $group; ?>" /> |
29 | <input type="hidden" name="id" value="<?php echo $id; ?>" /> |
641bfc1e |
30 | <input type="hidden" name="type" value="cancel" /> |
0a65ec9d |
31 | <input type="submit" name="action" value="<?php echo _b_('OK'); ?>" /> |
641bfc1e |
32 | </form> |
90962c86 |
33 | <? |
34 | } |
35 | |
0d407ce1 |
36 | require_once("include/footer.inc.php"); |
90962c86 |
37 | ?> |