From 28804449df1f28067b9eba8475452b5c97b2a1ac Mon Sep 17 00:00:00 2001 From: Luke Stuart Date: Wed, 10 Aug 2011 15:03:33 +0000 Subject: Weblog Updates including Squark support and revamped analysis. --- weblog-viewblocklog-html.lsp | 126 ------------------------------------------- 1 file changed, 126 deletions(-) delete mode 100644 weblog-viewblocklog-html.lsp (limited to 'weblog-viewblocklog-html.lsp') diff --git a/weblog-viewblocklog-html.lsp b/weblog-viewblocklog-html.lsp deleted file mode 100644 index a9398cd..0000000 --- a/weblog-viewblocklog-html.lsp +++ /dev/null @@ -1,126 +0,0 @@ -<% local data, viewlibrary, page_info, session = ... %> - -<% if data.value.focus.value ~= "" then %> - - -<% end %> - - - -

Search Parameters

-
-<% if data.errtxt then %>

<%= html.html_escape(data.errtxt) %>

<% end %> -
" method="POST"> -
Start Time
-
-

<%= html.html_escape(data.value.starttime.value) %>

-<% if data.value.starttime.errtxt then %>

<%= html.html_escape(data.value.starttime.errtxt) %>

<% end %> -
-
User ID
-
-

<%= html.html_escape(data.value.clientuserid.value) %>

-<% if data.value.clientuserid.errtxt then %>

<%= html.html_escape(data.value.clientuserid.errtxt) %>

<% end %> -
-
Client IP
-
-

<%= html.html_escape(data.value.clientip.value) %>

-<% if data.value.clientip.errtxt then %>

<%= html.html_escape(data.value.clientip.errtxt) %>

<% end %> -
-
End Time
-
-

<%= html.html_escape(data.value.endtime.value) %>

-<% if data.value.endtime.errtxt then %>

<%= html.html_escape(data.value.endtime.errtxt) %>

<% end %> -
-
-
-
- -<% -local clientinfo = "" -if data.value.clientuserid.value ~= "" then - clientinfo = clientinfo .. "clientuserid="..data.value.clientuserid.value.."&" -end -if data.value.clientip.value ~= "" then - clientinfo = clientinfo .. "clientip="..data.value.clientip.value.."&" -end -%> - -

<%= html.html_escape(data.label) %>

-
- - - - - - - - -<% for i,watch in ipairs(data.value.log.value) do %> - <% local a,b = math.modf((i/2)) - local mark = '' - if (b == 0) then mark=mark..'class="mark"' end - if string.find(watch.uri, "GBYPASS=") then mark='class="bypass"' end - %> - - <% local time = {} - time.year, time.month, time.day, time.hour, time.min, time.sec = - string.match(watch.logdatetime, "(%d+)%-(%d+)-(%d+)%s+(%d+):(%d+):(%d+)") - time = os.time(time) %> - > - - - - - - - > - -<% end %> -
TimestampClient IPUser IDSizeURL
style="font-weight:bold;" id="focus" <% end %> ><%= html.link{value = "viewweblog?"..clientinfo.. - "starttime="..os.date("%Y-%m-%d %H:%M:%S", time - 60*(tonumber(data.value.window.value))).. - "&endtime="..os.date("%Y-%m-%d %H:%M:%S", time + 60*(tonumber(data.value.window.value))).. - "&focus="..watch.logdatetime, - label=watch.logdatetime} %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientip) %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientuserid) %><%= html.html_escape(watch.bytes) %> - <%= html.link{value = watch.uri, label=watch.shorturi or watch.uri} %>
- title="<%= html.html_escape(watch.reason) %>"<% end %> colspan=5> - <% if watch.score and watch.score ~= "0" then %><%= html.html_escape(watch.score) %> - <% end %> - <% if (watch.shortreason and watch.shortreason ~= "") then %> - <%= html.html_escape(watch.shortreason) %> - <% elseif (watch.reason and watch.reason ~= "") then %> - <%= html.html_escape(watch.reason) %> - <% end %> -
- -<% if data.errtxt then %> -

<%= html.html_escape(data.errtxt) %>

-<% end %> -<% if #data.value.log.value == 0 then %> -

No results, try adjusting search parameters

-<% end %> - -<% if page_info.action == "viewweblog" then %> -
" method="POST"> - - - - -
Download log
-
-<% end %> - -
-- cgit v1.2.3