From: Steven Barth Date: Fri, 11 Apr 2008 18:26:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 0.8.0~1144 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a09102416324658e85ee0652a7e1acce3089cf65;p=oweals%2Fluci.git --- diff --git a/core/contrib/ffluci b/core/contrib/ffluci new file mode 100755 index 000000000..e090d560c --- /dev/null +++ b/core/contrib/ffluci @@ -0,0 +1,5 @@ +#!/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 +require("ffluci").dispatch() + diff --git a/core/contrib/ffluci-upload b/core/contrib/ffluci-upload new file mode 100755 index 000000000..0128c2dd7 --- /dev/null +++ b/core/contrib/ffluci-upload @@ -0,0 +1,4 @@ +#!/usr/bin/haserl --shell=luac --upload-limit=6144 +-- This is a bit hacky: remove -upload from SCRIPT_NAME +ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7) +dofile("ffluci") \ No newline at end of file diff --git a/core/contrib/index.cgi b/core/contrib/index.cgi new file mode 100755 index 000000000..c9c98b0b2 --- /dev/null +++ b/core/contrib/index.cgi @@ -0,0 +1,3 @@ +#!/usr/bin/haserl --shell=luac +print("Status: 302 Found") +print("Location: ffluci/admin\n") diff --git a/core/contrib/index.html b/core/contrib/index.html new file mode 100644 index 000000000..58387a5fe --- /dev/null +++ b/core/contrib/index.html @@ -0,0 +1,10 @@ + + + + + + + +FFLuCI - Freifunk Lua Configuration Interface + + \ No newline at end of file diff --git a/core/ffluci b/core/ffluci deleted file mode 100755 index e090d560c..000000000 --- a/core/ffluci +++ /dev/null @@ -1,5 +0,0 @@ -#!/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 -require("ffluci").dispatch() - diff --git a/core/ffluci-upload b/core/ffluci-upload deleted file mode 100755 index 0128c2dd7..000000000 --- a/core/ffluci-upload +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/haserl --shell=luac --upload-limit=6144 --- This is a bit hacky: remove -upload from SCRIPT_NAME -ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7) -dofile("ffluci") \ No newline at end of file diff --git a/core/index.cgi b/core/index.cgi deleted file mode 100755 index c9c98b0b2..000000000 --- a/core/index.cgi +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/haserl --shell=luac -print("Status: 302 Found") -print("Location: ffluci/admin\n") diff --git a/core/index.html b/core/index.html deleted file mode 100644 index 58387a5fe..000000000 --- a/core/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - -FFLuCI - Freifunk Lua Configuration Interface - - \ No newline at end of file