Handle hostnames with upper-case letters
[webmin.git] / acl_security.pl
old mode 100644 (file)
new mode 100755 (executable)
index 16cbee5..ee11d1e
@@ -1,7 +1,6 @@
 
-do 'web-lib.pl';
+use WebminCore;
 &init_config();
-do 'ui-lib.pl';
 
 # acl_security_form(&options)
 # Output HTML for editing global security options
@@ -100,6 +99,11 @@ print &ui_table_row($text{'acl_readonly2'},
        &ui_radio("readonly", int($o->{'readonly'}),
                  [ [ 1, $text{'acl_readonlyyes'} ],
                    [ 0, $text{'no'} ] ]));
+
+# Allow use of search field
+print &ui_table_row($text{'acl_webminsearch'},
+       &ui_radio("webminsearch", int($o->{'webminsearch'}),
+                 [ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ]));
 }
 
 # acl_security_save(&options)
@@ -127,5 +131,6 @@ $_[0]->{'rpc'} = $in{'rpc'};
 $_[0]->{'negative'} = $in{'negative'};
 $_[0]->{'readonly'} = $in{'readonly'};
 $_[0]->{'fileunix'} = $in{'fileunix_def'} ? undef : $in{'fileunix'};
+$_[0]->{'webminsearch'} = $in{'webminsearch'};
 }