From 1992f8ea20aa1d7efb3dddf91874a8e97ee9f183 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 9 Sep 2008 11:43:40 +0000 Subject: [PATCH] Revert "Added cookie debug tool.", which wasn't supposed to be committet. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@865 44740490-163a-0410-bde0-09ae8108e29a --- www/debug/cookie.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 www/debug/cookie.php diff --git a/www/debug/cookie.php b/www/debug/cookie.php deleted file mode 100644 index d8af57347..000000000 --- a/www/debug/cookie.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -header('Cache-Control: no-cache, must-revalidate'); -header('Pragma: no-cache'); - -if(array_key_exists('delete', $_GET)) { - $deleteId = $_GET['delete']; - setcookie($deleteId, '', time() - 24*60*60); - setcookie($deleteId, '', time() - 24*60*60, TRUE); - header('Location: cookie.php'); - exit; -} - -?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> -<title>Cookie debug</title> -</head> -<body> -<h1>Current cookies</h1> -<table> -<tr><th>Name</th><th>Value</th><th>Delete</th></tr> -<?php -foreach($_COOKIE as $name => $value) { - echo '<tr>'; - echo '<td>' . htmlspecialchars($name) . '</td>'; - echo '<td>' . htmlspecialchars($value) . '</td>'; - echo '<td><a href="?delete=' . htmlspecialchars($name) . '">Delete</a></td>'; - echo '</tr>'; - echo "\n"; -} -?> -</table> -</body> -</html> -- GitLab