Doc updates
authorJamie Cameron <jcameron@webmin.com>
Wed, 25 Mar 2009 23:19:54 +0000 (23:19 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 25 Mar 2009 23:19:54 +0000 (23:19 +0000)
ui-lib.pl
web-lib-funcs.pl
web-lib.pl

index f8cd329..c64c25e 100644 (file)
--- a/ui-lib.pl
+++ b/ui-lib.pl
@@ -3,7 +3,8 @@
 Common functions for generating HTML for Webmin user interface elements.
 Some example code :
 
- require '../ui-lib.pl';
+ use WebminCore;
+ init_config();
  ui_print_header(undef, 'My Module', '');
 
  print ui_form_start('save.cgi');
index 72b16ee..0b01c74 100755 (executable)
@@ -4,9 +4,8 @@ Common functions for Webmin CGI scripts. This file gets in-directly included
 by all scripts that use web-lib.pl.
 Example code:
 
-  require '../web-lib.pl';
+  use WebminCore;
   init_config();
-  require '../ui-lib.pl';
   ui_print_header(undef, 'My Module', '');
   print 'This is Webmin version ',get_webmin_version(),'<p>\n';
   ui_print_footer();
index 82bb66f..0524547 100755 (executable)
@@ -1,17 +1,3 @@
-=head1 web-lib.pl
-
-This file must be included by all Webmin CGI scripts, either directly or via
-another module-specific .pl file. For example :
-
- do '../web-lib.pl';
- init_config();
- do '../ui-lib.pl';
- ui_print_header(undef, 'My Module', '');
-
-This file in turn includes web-lib-funcs.pl, which is where the majority of
-the Webmin API functions are defined.
-
-=cut
 
 @INC = &unique(@INC, ".");
 %month_to_number_map = ( 'jan' => 0, 'feb' => 1, 'mar' => 2, 'apr' => 3,