Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <* = call ( getResourceFromName("ajax"), "start", getResourceName(getThisResource()) ) *>
- </head>
- <body>
- <*
- if ( exports.GTIreport:getReports() ) >= 1 then
- httpWrite ( "<table border='1'> <tr> <th> Reporter </th> <th> Reporter job </th> <th> Last attacker </th> <th> Attacker job </th> <th> Rule broken </th>< <th> Screenshot </th> /tr>" )
- for index, value in ipairs ( exports.GTIreport:getTableReports() ) do
- httpWrite ( "<td> " .. value[1] .. " </td> <td> " ..value[2] .. " </td>")
- if value[1] ~= value[3] then
- httpWrite ( "<td> " .. value[3] .. " </td> <td> " ..value[4] .. " </td>")
- else
- httpWrite ( "<td> N/A </td> <td> N/A </td>")
- end
- httpWrite ( "<td> " .. value[7] .. " </td>")
- httpWrite ( "</table>" )
- end
- else
- httpWrite( "There are no pending reports" )
- end
- *>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement