diff --git a/displaypc.asp b/displaypc.asp index cec0d1f..7f7d511 100644 --- a/displaypc.asp +++ b/displaypc.asp @@ -795,6 +795,61 @@ End If +<% + ' Show recent log entries + Dim logSQL, rsLog + logSQL = "SELECT filename, action, bytes_removed, created FROM ednc_logs " & _ + "WHERE UPPER(hostname) = UPPER(?) AND action IN ('cleaned', 'ok', 'failed', 'error') " & _ + "ORDER BY created DESC LIMIT 10" + Set rsLog = ExecuteParameterizedQuery(objConn, logSQL, Array(rsEdnc("hostname") & "")) +%> +
| File | +Action | +Time | +
|---|---|---|
| No recent activity | ||
" & Server.HTMLEncode(rsLog("filename") & "") & " | "
+ Response.Write "" & logBadge & " | " + Response.Write "" & rsLog("created") & " | " + Response.Write "