Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / www / status-log.asp
blobe745bcc09160be364ffde8e69ea2bd25851ddd4d
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(); %>] Status: Logs</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>
19 <!-- / / / -->
21 <script type='text/javascript' src='debug.js'></script>
23 <script type='text/javascript'>
25 // <% nvram("log_file"); %>
27 function find()
29 var s = E('find-text').value;
30 if (s.length) document.location = 'logs/view.cgi?find=' + escapeCGI(s) + '&_http_id=' + nvram.http_id;
33 function init()
35 var e = E('find-text');
36 if (e) e.onkeypress = function(ev) {
37 if (checkEvent(ev).keyCode == 13) find();
40 </script>
42 </head>
43 <body onload='init()'>
44 <form id='_fom' action='javascript:{}'>
45 <table id='container' cellspacing=0>
46 <tr><td colspan=2 id='header'>
47 <div class='title'>Tomato</div>
48 <div class='version'>Version <% version(); %></div>
49 </td></tr>
50 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
51 <td id='content'>
52 <div id='ident'><% ident(); %></div>
54 <!-- / / / -->
56 <div id='logging'>
57 <div class='section-title'>Logs</div>
58 <div class='section'>
59 <a href="logs/view.cgi?which=25&_http_id=<% nv(http_id) %>">View Last 25 Lines</a><br>
60 <a href="logs/view.cgi?which=50&_http_id=<% nv(http_id) %>">View Last 50 Lines</a><br>
61 <a href="logs/view.cgi?which=100&_http_id=<% nv(http_id) %>">View Last 100 Lines</a><br>
62 <a href="logs/view.cgi?which=all&_http_id=<% nv(http_id) %>">View All</a><br><br>
63 <a href="logs/syslog.txt?_http_id=<% nv(http_id) %>">Download Log File</a><br><br>
64 <input type="text" maxsize=32 size=33 id="find-text"> <input type="button" value="Find" onclick="find()"><br>
65 <br><br>
66 &raquo; <a href="admin-log.asp">Logging Configuration</a><br><br>
67 </div>
68 </div>
70 <script type='text/javascript'>
71 if (nvram.log_file != '1') {
72 W('<div class="note-disabled">Internal logging disabled.</b><br><br><a href="admin-log.asp">Enable &raquo;</a></div>');
73 E('logging').style.display = 'none';
75 </script>
77 <!-- / / / -->
79 </td></tr>
80 <tr><td id='footer' colspan=2>&nbsp;</td></tr>
81 </table>
82 </form>
83 </body>
84 </html>