#!/usr/bin/haserl --shell=luac
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
+print("Content-Type: text/plain\n")
require("ffluci.dispatcher").httpdispatch()
\ No newline at end of file
-- Checks whether a file exists
function isfile(filename)
- local fp = io.open(path, "r")
- if file then file:close() end
- return file ~= nil
+ local fp = io.open(filename, "r")
+ if fp then fp:close() end
+ return fp ~= nil
end
-- Returns the content of file