mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
22 lines
594 B
Perl
Executable File
22 lines
594 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
|
|
require './usermin-lib.pl';
|
|
$access{'assignment'} || &error($text{'acl_ecannot'});
|
|
&ReadParse();
|
|
|
|
&lock_file("$config{'usermin_dir'}/webmin.cats");
|
|
@modules = &list_modules();
|
|
foreach $module (keys %in){
|
|
local ($minfo) = grep { $_->{'dir'} eq $module } @modules;
|
|
next if (!$minfo);
|
|
if ($minfo->{'realcategory'} ne $in{$module}) {
|
|
$cats{$module} = $in{$module};
|
|
}
|
|
}
|
|
&write_file("$config{'usermin_dir'}/webmin.cats", \%cats);
|
|
&unlock_file("$config{'usermin_dir'}/webmin.cats");
|
|
&webmin_log("assignment", undef, undef, \%in);
|
|
&flush_modules_cache();
|
|
|
|
&redirect("");
|