webmin/refresh_modules.cgi

27 lines
729 B
Plaintext
Raw Normal View History

2014-07-06 08:32:03 -07:00
#!/usr/local/bin/perl
# Refresh the list of visible modules
2018-07-04 12:24:02 -07:00
BEGIN { push(@INC, "."); };
2014-07-06 08:32:03 -07:00
use WebminCore;
&init_config();
&ReadParse();
&foreign_require("webmin", "webmin-lib.pl");
&ui_print_unbuffered_header(undef, $text{'refreshmods_title'}, "", undef, 0, 1);
# Re-run install checks
&flush_webmin_caches();
print $text{'refreshmods_installed'},"<br>\n";
$installed = &webmin::build_installed_modules(1);
@not = grep { $installed->{$_} eq '0' } (keys %$installed);
@got = grep { $installed->{$_} ne '0' } (keys %$installed);
2023-05-26 14:00:39 +03:00
print &text('refeshmods_counts', scalar(@not), scalar(@got)),"\n";
2014-07-06 08:32:03 -07:00
# Refresh left frame, if possible
if (defined(&theme_post_change_modules)) {
&theme_post_change_modules();
}
&ui_print_footer();