]> src.bluestatic.org Git - bugdar.git/blob - docs/mycookies.php
r1406: Moving the rest of the email body texts (from class_notification.php) to templates
[bugdar.git] / docs / mycookies.php
1 <?php
2
3 if (empty($_REQUEST['do']))
4 {
5 echo "<form name=\"cookies\" action=\"mycookies.php\" method=\"post\">\r";
6 echo "<input type=\"hidden\" name=\"do\" value=\"go\" />\r";
7 echo '<table border="1" cellspacing="2" cellpadding="3">';
8 echo "\r<tr><td><strong>Name</strong></td><td><strong>Value</strong></td><td><strong>Del</strong></td></tr>";
9
10 foreach ($_COOKIE AS $varname => $value)
11 {
12 echo "\r<tr><td>" . $varname . '</td><td>' . $value . '</td><td><input type="checkbox" name="del[' . $varname . ']" value="' . $varname . '" /></tr>';
13 }
14
15 echo '</table>';
16
17 echo "\r<br />\r<input type=\"submit\" name=\"submit\" value=\"Delete Cookies\" /></form>";
18 }
19 else
20 {
21 foreach ($_POST['del'] AS $remove)
22 {
23 setcookie($remove, '', time() - (2 * 900), '/');
24 }
25
26 header("Location: mycookies.php");
27 }
28
29 ?>