summaryrefslogtreecommitdiffhomepage
path: root/core/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'core/contrib')
-rwxr-xr-xcore/contrib/ffluci5
-rwxr-xr-xcore/contrib/ffluci-upload4
-rwxr-xr-xcore/contrib/index.cgi3
-rw-r--r--core/contrib/index.html10
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