Use new libary
authorJamie Cameron <jcameron@webmin.com>
Fri, 27 Feb 2009 23:12:25 +0000 (23:12 +0000)
committerJamie Cameron <jcameron@webmin.com>
Fri, 27 Feb 2009 23:12:25 +0000 (23:12 +0000)
time/index.cgi
time/time-lib.pl

index e8d2958..745c874 100755 (executable)
@@ -15,7 +15,7 @@ else {
        $arr = "0";
        }
 &ui_print_header(undef,  $text{ 'index_title' }, "", "index", 1, 1, undef,
-       &help_search_link("date hwclock", "man"),
+       &help_search_link("date hwclock ntpdate", "man"),
        qq(<script src="time.js"></script>\n),
        qq(onLoad="F=[$arr];timeInit(F); setTimeout('timeUpdate(F)', 5000);"));
 
index 7ae19dd..1f801c8 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/local/bin/perl
 
-do "../web-lib.pl";
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
-do '../ui-lib.pl';
 %access = &get_module_acl();
 $cron_cmd = "$module_config_directory/sync.pl";
 if ($config{'zone_style'}) {