diff options
author | Steven Barth <steven@midlink.org> | 2008-05-17 10:00:44 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-17 10:00:44 +0000 |
commit | 6eae1a0103a3d12dee4bc8753efee88af203dff3 (patch) | |
tree | be2c3176005ce796203c500d619e1e3b36136f01 /applications/sgi-haserl/src/sgi | |
parent | 357ba22175225ca40cfcffd1f61cc4621ff13dbe (diff) |
* Generalized dispatcher handling
Diffstat (limited to 'applications/sgi-haserl/src/sgi')
-rw-r--r-- | applications/sgi-haserl/src/sgi/haserl.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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() |