nedge localization

This commit is contained in:
emanuele-f 2018-01-25 14:02:13 +01:00
parent 41224c9b9a
commit 5654f82b92
5 changed files with 12 additions and 8 deletions

View file

@ -11,7 +11,7 @@ sendHTTPContentTypeHeader('text/html')
if(haveAdminPrivileges()) then
interface.select(ifname)
is_captive_portal_active = isCaptivePortalActive()
is_captive_portal_active = isCaptivePortalActive() and not ntop.isnEdge()
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
@ -22,7 +22,7 @@ if(haveAdminPrivileges()) then
local ifstats = interface.getStats()
local is_captive_portal_enabled = ntop.getPrefs()["is_captive_portal_enabled"]
if(ifstats.inline and not(is_captive_portal_enabled)) then
if(ifstats.inline and not(is_captive_portal_enabled)) and not ntop.isnEdge() then
print('<small><b>NOTE:</b> <A HREF="'.. ntop.getHttpPrefix() ..'/lua/admin/prefs.lua?tab=bridging">Enabling the captive portal</A> allows you to define captive portal users.</small>')
end