summaryrefslogtreecommitdiffhomepage
path: root/applications/sgi-webuci/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-17 10:00:44 +0000
committerSteven Barth <steven@midlink.org>2008-05-17 10:00:44 +0000
commit6eae1a0103a3d12dee4bc8753efee88af203dff3 (patch)
treebe2c3176005ce796203c500d619e1e3b36136f01 /applications/sgi-webuci/src
parent357ba22175225ca40cfcffd1f61cc4621ff13dbe (diff)
* Generalized dispatcher handling
Diffstat (limited to 'applications/sgi-webuci/src')
-rw-r--r--applications/sgi-webuci/src/sgi/webuci.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/sgi-webuci/src/sgi/webuci.lua b/applications/sgi-webuci/src/sgi/webuci.lua
index d3d4cd4dc..f05fd2b0d 100644
--- a/applications/sgi-webuci/src/sgi/webuci.lua
+++ b/applications/sgi-webuci/src/sgi/webuci.lua
@@ -31,6 +31,16 @@ ffluci.http.env = webuci.env
local status_set = false
+-- 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()
+ -- To be implemented
+end
+
-- Returns a table of all COOKIE, GET and POST Parameters
function ffluci.http.formvalues()
return webuci.vars