Vanilla commit.
[tinybbs.git] / drop_id.php
blobdea96dcdc45cea47aa014ca9adb1c0fe35b9e48b
1 <?php
3 require('includes/header.php');
4 $page_title = 'Drop ID';
6 if($_POST['drop_ID'])
8 unset($_SESSION['UID']);
9 unset($_SESSION['ID_activated']);
10 setcookie('UID', '', $_SERVER['REQUEST_TIME'] - 3600, '/');
11 setcookie('password', '', $_SERVER['REQUEST_TIME'] - 3600, '/');
12 setcookie('topics_mode', '', $_SERVER['REQUEST_TIME'] - 3600, '/');
13 setcookie('spoiler_mode', '', $_SERVER['REQUEST_TIME'] - 3600, '/');
14 setcookie('snippet_length', '', $_SERVER['REQUEST_TIME'] - 3600, '/');
16 $_SESSION['notice'] = 'Your ID has been dropped.';
21 <p>"Dropping" your ID will simply remove the UID, password, and mode cookies from your browser, effectively logging you out. If you want to keep your post history, settings, etc., <a href="/back_up_ID">back up your ID</a> or <a href="/dashboard">set a memorable password</a> before doing this.</p>
23 <form action="" method="post">
24 <input type="submit" name="drop_ID" value="Drop my ID" />
25 </form>
27 <?php
29 require('includes/footer.php');