mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Initial nedge2 lua page setup
This commit is contained in:
parent
f85f3be347
commit
e3941556ae
7 changed files with 108 additions and 1 deletions
24
scripts/lua/admin/nf_list_users.lua
Normal file
24
scripts/lua/admin/nf_list_users.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- (C) 2013-17 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
if((dirs.scriptdir ~= nil) and (dirs.scriptdir ~= "")) then package.path = dirs.scriptdir .. "/lua/modules/?.lua;" .. package.path end
|
||||
|
||||
require "lua_utils"
|
||||
local host_pools_utils = require "host_pools_utils"
|
||||
|
||||
-- Administrator check
|
||||
if not isAdministrator() then
|
||||
return
|
||||
end
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
print[[<a href="]] print(ntop.getHttpPrefix()) print[[/lua/admin/nf_edit_user.lua">Edit user</a>]]
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
Loading…
Add table
Add a link
Reference in a new issue