Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:57:19 +0000 (22:57 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:57:19 +0000 (22:57 +0000)
vnc/index.cgi

index 979ee7b..b5869b7 100755 (executable)
@@ -2,10 +2,10 @@
 # index.cgi
 # Display the vnc applet
 
-require '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 use Socket;
 &init_config();
-require '../ui-lib.pl';
 
 &ui_print_header(undef, $text{'index_title'}, "", undef, &get_product_name() eq 'webmin', 1);