X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=applications%2Fsgi-webuci%2Froot%2Flib%2Fwebuci%2Fmain.lua;fp=applications%2Fsgi-webuci%2Froot%2Flib%2Fwebuci%2Fmain.lua;h=0000000000000000000000000000000000000000;hb=93ff578ac8f0cd4772285a6ea983cf02cc9be620;hp=cb2730d147d8158fc7fe6af07fab69e1456eeb35;hpb=30c8b259e1b7012f7c16c1ee5aeb1997e44dcbdc;p=project%2Fluci.git diff --git a/applications/sgi-webuci/root/lib/webuci/main.lua b/applications/sgi-webuci/root/lib/webuci/main.lua deleted file mode 100644 index cb2730d147..0000000000 --- a/applications/sgi-webuci/root/lib/webuci/main.lua +++ /dev/null @@ -1,20 +0,0 @@ -module("webuci", package.seeall) - -function prepare_req(uri) - require("luci.dispatcher").createindex() - env = {} - env.REQUEST_URI = uri -end - -function handle_req(context) - env.SERVER_PROTOCOL = context.server_proto - env.REMOTE_ADDR = context.remote_addr - env.REQUEST_METHOD = context.request_method - env.PATH_INFO = context.uri - env.REMOTE_PORT = context.remote_port - env.SERVER_ADDR = context.server_addr - env.SCRIPT_NAME = env.REQUEST_URI:sub(1, #env.REQUEST_URI - #env.PATH_INFO) - - luci.sgi.webuci.initenv(env) - luci.dispatcher.httpdispatch() -end \ No newline at end of file