mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
24 lines
584 B
Perl
Executable File
24 lines
584 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# save_check.cgi
|
|
# Save the list of search types that are allowed for searches made
|
|
# from help_search_link()
|
|
|
|
require './man-lib.pl';
|
|
$access{'allow'} || &error($text{'check_ecannot'});
|
|
&ReadParse();
|
|
&lock_file("$module_config_directory/config");
|
|
@check = split(/\0/, $in{'check'});
|
|
if (!@check) {
|
|
$config{'check'} = 'NONE';
|
|
}
|
|
elsif (@check == $in{'count'}) {
|
|
$config{'check'} = '';
|
|
}
|
|
else {
|
|
$config{'check'} = join(" ", @check);
|
|
}
|
|
&write_file("$module_config_directory/config", \%config);
|
|
&unlock_file("$module_config_directory/config");
|
|
&redirect("");
|
|
|