mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
- Do now show the "Not Assigned" group in user pool dropdown - Show an alert message when creating a Captive Portal user and no pools are defined - Improve unique member validator to account missing network prefixes - Prevent deleting an Host Group when a captive portal user is defined on it
27 lines
809 B
Lua
27 lines
809 B
Lua
--
|
|
-- (C) 2013 - ntop.org
|
|
--
|
|
|
|
dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
require "lua_utils"
|
|
|
|
sendHTTPHeader('text/html; charset=iso-8859-1')
|
|
|
|
if(haveAdminPrivileges()) then
|
|
interface.select(ifname)
|
|
|
|
is_captive_portal_active = isCaptivePortalActive()
|
|
|
|
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
|
|
|
active_page = "admin"
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/users.lua")
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/password_dialog.lua")
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/add_user_dialog.lua")
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/delete_user_dialog.lua")
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
|
end
|