From dccf8e4e5bb5ae078fdcc54e250288fd3c5490dc Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 1 Mar 2009 07:49:54 +0000 Subject: [PATCH] Use new module in top-level CGIs --- rpc.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpc.cgi b/rpc.cgi index f117f095e..275caa21b 100755 --- 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;