Vanilla commit.
[tinybbs.git] / trash_can.php
blobfb761fdcdb45e9e3468e5a820a10691757f4c1a8
1 <?php
3 require('includes/header.php');
4 force_id();
5 $page_title = 'Your trash can';
7 if($_POST['empty_trash'])
9 $delete_topic = $link->prepare('DELETE FROM trash WHERE uid = ?');
10 $delete_topic->bind_param('s', $_SESSION['UID']);
11 $delete_topic->execute();
12 $delete_topic->close();
14 $_SESSION['notice'] = 'Trash emptied.';
17 echo '<p>Your deleted topics and replies are archived here.</p>';
19 if($trash = show_trash($_SESSION['UID']))
21 echo $trash;
24 <form action="" method="post">
25 <div class="row">
26 <input type="submit" name="empty_trash" value="Empty trash can" onclick="return confirm('Really?');" />
27 </div>
28 </form>
30 <?php
33 require('includes/footer.php');