Use new module in top-level CGIs
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:54 +0000 (07:49 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:54 +0000 (07:49 +0000)
rpc.cgi

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;