From 3467296659fbf5630e850903b428d4cc2bca02fa Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 30 May 2008 05:14:45 +0000 Subject: [PATCH] Refresh modules button, in case theme doesn't have one --- webmin/index.cgi | 6 ++++++ webmin/lang/en | 2 ++ 2 files changed, 8 insertions(+) diff --git a/webmin/index.cgi b/webmin/index.cgi index 2d522f7c3..7a1261bce 100755 --- a/webmin/index.cgi +++ b/webmin/index.cgi @@ -83,16 +83,22 @@ if (&foreign_check("init")) { } } +# Restart Webmin if (!$miniserv{'inetd'} && $ENV{'MINISERV_CONFIG'}) { print &ui_buttons_row("restart.cgi", $text{'index_restart'}, $text{'index_restartmsg'}); } +# Submit OS info if (!$config{'submitted'}) { print &ui_buttons_row("submit.cgi", $text{'index_submit'}, $text{'index_submitmsg'}); } +# Refresh modules +print &ui_buttons_row("refresh_modules.cgi", + $text{'index_refresh'}, $text{'index_refreshmsg'}); + print &ui_buttons_end(); if ($in{'refresh'} && defined(&theme_post_change_modules)) { diff --git a/webmin/lang/en b/webmin/lang/en index 2a89ffb09..8d24ee8ec 100644 --- a/webmin/lang/en +++ b/webmin/lang/en @@ -9,6 +9,8 @@ index_restart=Restart Webmin index_restartmsg=Click this button to re-start the Webmin server process. This may be necessary if you have recently upgraded Perl. index_submit=Submit OS Information index_submitmsg=Clicking this button will send information about your operating system and Perl version to the Webmin developers. This data will be strictly anonymous, and will provide information about which operating systems to best focus the development of Webmin on. +index_refresh=Refresh Modules +index_refreshmsg=Re-check all Webmin modules for installed servers, and update those that appear in the 'Un-used modules' category. access_title=IP Access Control access_desc=The Webmin server can be configured to deny or allow access only from certain IP addresses using this form. Hostnames (like foo.bar.com) and IP networks (like 10.254.3.0 or 10.254.1.0/255.255.255.128) can also be entered. You should limit access to your server to trusted addresses, especially if it is accessible from the Internet. Otherwise, anyone who guesses your password will have complete control of your system.