]]--
module("luci.sgi.webuci", package.seeall)
--- Environment Table
-luci.http.env = webuci.env
-
-
local status_set = false
+-- Initialize the environment
+function initenv(env)
+ luci.http.env = env
+end
+
-- Returns the main dispatcher URL
function luci.http.dispatcher()
return luci.http.env.SCRIPT_NAME or ""
-- Sets HTTP-Status-Header
function luci.http.status(code, message)
- print(webuci.env.SERVER_PROTOCOL .. " " .. tostring(code) .. " " .. message)
+ print(luci.http.env.SERVER_PROTOCOL .. " " .. tostring(code) .. " " .. message)
status_set = true
end