projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a63fbb3
)
Use new module in top-level CGIs
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:39 +0000
(07:49 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:49:39 +0000
(07:49 +0000)
index.cgi
patch
|
blob
|
history
diff --git
a/index.cgi
b/index.cgi
index
05f647b
..
7fd4e5f
100755
(executable)
--- a/
index.cgi
+++ b/
index.cgi
@@
-1,7
+1,9
@@
#!/usr/local/bin/perl
# Display all Webmin modules visible to the current user
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
&init_config();
$hostname = &get_display_hostname();
$ver = &get_webmin_version();