diff options
Diffstat (limited to 'applications/sgi-haserl')
-rwxr-xr-x | applications/sgi-haserl/root/www/cgi-bin/ffluci-upload | 2 | ||||
-rw-r--r-- | applications/sgi-haserl/src/sgi/haserl.lua | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload b/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload index 0128c2dd73..c31ddb8224 100755 --- a/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload +++ b/applications/sgi-haserl/root/www/cgi-bin/ffluci-upload @@ -1,4 +1,4 @@ -#!/usr/bin/haserl --shell=luac --upload-limit=6144 +#!/usr/bin/haserl --shell=luac --upload-limit=16384 -- 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/src/sgi/haserl.lua b/applications/sgi-haserl/src/sgi/haserl.lua index 0e388391db..f3a6ee613d 100644 --- a/applications/sgi-haserl/src/sgi/haserl.lua +++ b/applications/sgi-haserl/src/sgi/haserl.lua @@ -29,6 +29,15 @@ require("ffluci.fs") -- Environment Table ffluci.http.env = ENV +-- Returns the main dispatcher URL +function ffluci.http.dispatcher() + return ffluci.http.env.SCRIPT_NAME or "" +end + +-- Returns the upload dispatcher URL +function ffluci.http.dispatcher_upload() + return ffluci.http.dispatcher() .. "-upload" +end -- Returns a table of all COOKIE, GET and POST Parameters function ffluci.http.formvalues() |