diff options
author | Steven Barth <steven@midlink.org> | 2008-04-11 18:26:35 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-11 18:26:35 +0000 |
commit | a09102416324658e85ee0652a7e1acce3089cf65 (patch) | |
tree | fdd98e80bab05b81944a32f84761bf5db35459b3 /core/contrib | |
parent | 0268c3491f5b14ffdba097e6a983ffc7c53daa13 (diff) |
Diffstat (limited to 'core/contrib')
-rwxr-xr-x | core/contrib/ffluci | 5 | ||||
-rwxr-xr-x | core/contrib/ffluci-upload | 4 | ||||
-rwxr-xr-x | core/contrib/index.cgi | 3 | ||||
-rw-r--r-- | core/contrib/index.html | 10 |
4 files changed, 22 insertions, 0 deletions
diff --git a/core/contrib/ffluci b/core/contrib/ffluci new file mode 100755 index 0000000000..e090d560cd --- /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 0000000000..0128c2dd73 --- /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 0000000000..c9c98b0b29 --- /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 0000000000..58387a5fec --- /dev/null +++ b/core/contrib/index.html @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="refresh" content="0; URL=/cgi-bin/index.cgi" /> +</head> +<body style="background-color: black"> +<a style="color: white; text-decoration: none" href="/cgi-bin/index.cgi">FFLuCI - Freifunk Lua Configuration Interface</a> +</body> +</html>
\ No newline at end of file |