ntopng/scripts/lua/authorize_captive.lua
Luca Deri 6205d88f56 Added support in captive portal for iOS and Kindle devices
Created minimal header for speeding up load of login pages
2017-01-23 01:29:34 +01:00

22 lines
No EOL
430 B
Lua

--
-- (C) 2013-17 - 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')
print [[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Authentication Successful</TITLE>
<meta http-equiv="refresh" Content="0; url=http://www.ntop.org"/>
</HEAD>
<BODY>
Success.
</BODY>
</HTML>
]]