summaryrefslogtreecommitdiffhomepage
path: root/core/src/ffluci/sgi/haserl.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-06 20:44:45 +0000
committerSteven Barth <steven@midlink.org>2008-05-06 20:44:45 +0000
commitfc65325c174e13cc1a9329d154e74069257ebb12 (patch)
tree1c5813fa25f538989802eacf6fe45a2ed7b06867 /core/src/ffluci/sgi/haserl.lua
parent21bd8ca76deec06b8e4f4dc3bc2ea75c7f9c3260 (diff)
* General code cleanup
* Removed unnecessary module dependencies * Completed SGI abstraction * Reworked ffluci.sgi.webuci
Diffstat (limited to 'core/src/ffluci/sgi/haserl.lua')
-rw-r--r--core/src/ffluci/sgi/haserl.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ffluci/sgi/haserl.lua b/core/src/ffluci/sgi/haserl.lua
index 76dc3854af..e58189d1cf 100644
--- a/core/src/ffluci/sgi/haserl.lua
+++ b/core/src/ffluci/sgi/haserl.lua
@@ -54,12 +54,21 @@ function ffluci.http.formvaluetable(prefix)
return ffluci.http.formvalue(prefix, {})
end
+-- Returns the path info
+function ffluci.http.get_path_info()
+ return ENV.PATH_INFO
+end
-- Returns the User's IP
function ffluci.http.get_remote_addr()
return ENV.REMOTE_ADDR
end
+-- Returns the request URI
+function ffluci.http.get_request_uri()
+ return ENV.REQUEST_URI
+end
+
-- Returns the script name
function ffluci.http.get_script_name()
return ENV.SCRIPT_NAME