projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9809e1a
)
Use new module in top-level CGIs
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:54 +0000
(07:49 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:54 +0000
(07:49 +0000)
rpc.cgi
patch
|
blob
|
history
diff --git
a/rpc.cgi
b/rpc.cgi
index
f117f09
..
275caa2
100755
(executable)
--- a/
rpc.cgi
+++ b/
rpc.cgi
@@
-6,8
+6,10
@@
# seconds of inactivity)
# access{'rpc'} 0=not allowed 1=allowed 2=allowed if root or admin
-do './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
use POSIX;
+
&init_config();
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
local $got;