Use new module
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:52:34 +0000 (22:52 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 22:52:34 +0000 (22:52 +0000)
caldera/index.cgi
caldera/index_body.cgi
caldera/index_top.cgi

index 92c8dae..a997ec8 100755 (executable)
@@ -3,7 +3,8 @@
 # Webmin index page for Caldera's theme. Contains two frames, with the
 # categories and modules always at the top and the CGIs at the bottom
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
 $hostname = &get_display_hostname();
 $ver = &get_webmin_version();
index 0538111..3267a33 100755 (executable)
@@ -2,7 +2,8 @@
 # index_body.cgi
 # Display an empty page
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
 &header();
 
index fa91361..b1de1c5 100755 (executable)
@@ -2,7 +2,8 @@
 # index_top.cgi
 # Display the top frame using the Caldera icons and style
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
 $hostname = &get_display_hostname();
 $ver = &get_webmin_version();