mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements captive portal users
This commit is contained in:
parent
d9af0c8025
commit
4e2c7b8e8b
12 changed files with 138 additions and 30 deletions
|
|
@ -9,6 +9,11 @@ require "lua_utils"
|
|||
sendHTTPHeader('text/html; charset=iso-8859-1')
|
||||
|
||||
if(haveAdminPrivileges()) then
|
||||
interface.select(ifname)
|
||||
|
||||
ifstats = interface.getStats()
|
||||
is_bridge_iface = (ifstats["bridge.device_a"] ~= nil) and (ifstats["bridge.device_b"] ~= nil)
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
|
||||
active_page = "admin"
|
||||
|
|
@ -20,4 +25,4 @@ if(haveAdminPrivileges()) then
|
|||
dofile(dirs.installdir .. "/scripts/lua/inc/delete_user_dialog.lua")
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue