3 require('includes/header.php');
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']))
24 <form action
="" method
="post">
26 <input type
="submit" name
="empty_trash" value
="Empty trash can" onclick
="return confirm('Really?');" />
33 require('includes/footer.php');