chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:12:17 +08:00
commit cf8edb9f21
44281 changed files with 1655134 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/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("");