Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / www / clearcookies.asp
blob95c4757caf9a71ced512577571fd8a21fb79ef11
1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
2 <!--
3 Tomato GUI
4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
9 -->
10 <html>
11 <head>
12 <meta http-equiv='content-type' content='text/html;charset=utf-8'>
13 <meta name='robots' content='noindex,nofollow'>
14 <title>[<% ident(); %>] Clear Cookies</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'>
16 <link rel='stylesheet' type='text/css' href='color.css'>
17 <script type='text/javascript' src='tomato.js'></script>
18 </head>
19 <body>
20 <table id='container' cellspacing=0>
21 <tr><td colspan=2 id='header'>
22 <div class='title'>Tomato</div>
23 <div class='version'>Version <% version(); %></div>
24 </td></tr>
25 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
26 <td id='content'>
27 <div id='ident'><% ident(); %></div>
29 <!-- / / / -->
31 <b>Cookies Cleared</b>
33 <script type='text/javascript'>
34 b = [];
35 c = document.cookie.split(';');
36 for (i = 0; i < c.length; ++i) {
37 if (c[i].match(/^\s*tomato_(.+?)=/)) {
38 b.push('<li>' + c[i]);
39 cookie.unset(RegExp.$1);
42 if (b.length == 0) b.push('<li>no cookie found');
43 W('<ul>' + b.join('') + '</ul>');
44 </script>
47 <!-- / / / -->
49 </td></tr>
50 <tr><td id='footer' colspan=2>&nbsp;</td></tr>
51 </table>
52 </body>
53 </html>