1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
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.
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>
21 <script type='text/javascript' src='debug.js'
></script>
23 <script type='text/javascript'
>
25 // <% nvram("log_file"); %>
29 var s
= E('find-text').value
;
30 if (s
.length
) document
.location
= 'logs/view.cgi?find=' + escapeCGI(s
) + '&_http_id=' + nvram
.http_id
;
35 var e
= E('find-text');
36 if (e
) e
.onkeypress = function(ev
) {
37 if (checkEvent(ev
).keyCode
== 13) find();
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>
50 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
52 <div id='ident'
><%
ident(); %></div>
57 <div class='section-title'
>Logs
</div>
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
>
66 »
; <a href
="admin-log.asp">Logging Configuration
</a
><br
><br
>
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 »</a></div>');
73 E('logging').style
.display
= 'none';
80 <tr
><td id
='footer' colspan
=2> 
;</td
></tr
>