<% 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 %>
Timestamp Client IP User ID Size URL
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=string.gsub(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(string.gsub(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 %>