-- -- (C) 2013-18 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path -- io.write ("Session:".._SESSION["session"].."\n") require "lua_utils" sendHTTPContentTypeHeader('text/html') local prefs = ntop.getPrefs() local dbname = (prefs.mysql_dbname or '') -- read the db activities to notify the user about what is going on in the database -- local res = interface.execSQLQuery("show full processlist", false, false) -- CAREFUL, this can introudce a deadlock print [[
| ]] print(i18n("please_wait_page.database")) print[[ | ]] print(i18n("please_wait_page.state")) print[[ | ]] print(i18n("please_wait_page.command")) print[[ | ]] print(i18n("please_wait_page.id")) print[[ | ]] print(i18n("please_wait_page.user")) print[[ | ]] print(i18n("please_wait_page.time")) print[[ | ]] print(i18n("please_wait_page.info")) print[[ | ]] print(i18n("please_wait_page.host")) print[[ |
|---|---|---|---|---|---|---|---|
| '..(p["db"] or '')..' | '..(p["State"] or '')..' | '..(p["Command"] or '')..' | '..(p["Id"] or '')..' | ') print(''..(p["User"] or '')..' | '..secondsToTime(tonumber((p["Time"] or '')))..' | ') print(''..shortenString((p["Info"] or ''))..' | '..(p["Host"] or '')..' | ') print('