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

index 8ee5844..ab8b7c5 100755 (executable)
@@ -4,7 +4,8 @@
 # client. From then on, direct TCP connections can be made to this port
 # to send requests and get replies.
 
-do './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 use POSIX;
 use Socket;
 $force_lang = $default_lang;