summaryrefslogtreecommitdiffhomepage
path: root/applications/sgi-haserl/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/sgi-haserl/root')
-rwxr-xr-xapplications/sgi-haserl/root/www/cgi-bin/ffluci4
-rwxr-xr-xapplications/sgi-haserl/root/www/cgi-bin/ffluci-upload4
-rwxr-xr-xapplications/sgi-haserl/root/www/cgi-bin/index.cgi3
-rw-r--r--applications/sgi-haserl/root/www/index.html10
4 files changed, 21 insertions, 0 deletions
diff --git a/applications/sgi-haserl/root/www/cgi-bin/ffluci b/applications/sgi-haserl/root/www/cgi-bin/ffluci
new file mode 100755
index 000000000..183a6ad41
--- /dev/null
+++ b/applications/sgi-haserl/root/www/cgi-bin/ffluci
@@ -0,0 +1,4 @@
+#!/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.dispatcher").httpdispatch() \ No newline at end of file
diff --git a/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload b/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload
new file mode 100755
index 000000000..0128c2dd7
--- /dev/null
+++ b/applications/sgi-haserl/root/www/cgi-bin/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/applications/sgi-haserl/root/www/cgi-bin/index.cgi b/applications/sgi-haserl/root/www/cgi-bin/index.cgi
new file mode 100755
index 000000000..31705ccf2
--- /dev/null
+++ b/applications/sgi-haserl/root/www/cgi-bin/index.cgi
@@ -0,0 +1,3 @@
+#!/usr/bin/haserl --shell=luac
+print("Status: 302 Found")
+print("Location: ffluci\n")
diff --git a/applications/sgi-haserl/root/www/index.html b/applications/sgi-haserl/root/www/index.html
new file mode 100644
index 000000000..58387a5fe
--- /dev/null
+++ b/applications/sgi-haserl/root/www/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