projects
/
wiki.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New edit page
[wiki.git]
/
sys
/
macros
/
CgiVar.py
1
#acl bernie:read,write All:read
2
3
def _macro_CgiVar(*args, **kvargs):
4
return {
5
'REMOTE_USER': remote_user(),
6
'REMOTE_HOST': get_hostname(remote_host()),
7
'REMOTE_ADDR': remote_host(),
8
'QUERY_STRING': relative_url(query_string()),
9
}[args[1]]