projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8248aa3
)
Use new module in top-level CGIs
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:48:58 +0000
(07:48 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 1 Mar 2009 07:48:58 +0000
(07:48 +0000)
chooser.cgi
patch
|
blob
|
history
diff --git
a/chooser.cgi
b/chooser.cgi
index
c854fd3
..
7972216
100755
(executable)
--- a/
chooser.cgi
+++ b/
chooser.cgi
@@
-2,6
+2,9
@@
# chooser.cgi
# Outputs HTML for a frame-based file chooser
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
@icon_map = ( "c", "text.gif",
"txt", "text.gif",
"pl", "text.gif",
@@
-14,8
+17,6
@@
);
$trust_unknown_referers = 1;
-require (-r './web-lib.pl' ? './web-lib.pl' : '../web-lib.pl');
-require (-r './ui-lib.pl' ? './ui-lib.pl' : '../ui-lib.pl');
&init_config();
%access = &get_module_acl();