Remove Standard Modules option from Webmin Modules page
This commit is contained in:
@@ -37,11 +37,6 @@ print &ui_table_row($text{'mods_installsource'},
|
||||
&ui_upload("upload", 40) ],
|
||||
[ 2, $text{'mods_ftp'},
|
||||
&ui_textbox("url", undef, 40) ],
|
||||
[ 3, $config{'standard_url'} ? $text{'mods_standard2'} :
|
||||
&text('mods_standard',
|
||||
"http://www.webmin.com/standard.html"),
|
||||
&ui_textbox("standard", undef, 20)." ".
|
||||
&standard_chooser_button("standard") ],
|
||||
[ 4, $text{'mods_third'},
|
||||
&ui_textbox("third", undef, 40)." ".
|
||||
&third_chooser_button("third") ] ]));
|
||||
@@ -51,7 +46,7 @@ print &ui_table_row($text{'mods_nodeps'},
|
||||
|
||||
print &ui_table_row($text{'mods_grantto'},
|
||||
&ui_radio("grant", 0,
|
||||
[ [ 0, $text{'mods_grant2'}." ".
|
||||
[ [ 0, $text{'mods_grant2'}." ".
|
||||
&ui_textbox("grantto", $base_remote_user, 30)."<br>" ],
|
||||
[ 1, $text{'mods_grant1'} ] ]));
|
||||
|
||||
|
||||
@@ -57,39 +57,6 @@ elsif ($in{'source'} == 2 || $in{'source'} == 4) {
|
||||
}
|
||||
&inst_error($error) if ($error);
|
||||
}
|
||||
elsif ($in{'source'} == 3) {
|
||||
# from www.webmin.com
|
||||
&error_setup($text{'install_err4'});
|
||||
$in{'standard'} =~ /^\S+$/ || &error($text{'install_estandard'});
|
||||
$need_unlink = 1;
|
||||
my $error;
|
||||
|
||||
# Find the URL of the package
|
||||
$mods = &list_standard_modules();
|
||||
ref($mods) || &error(&text('standard_failed', $error));
|
||||
local ($info) = grep { $_->[0] eq $in{'standard'} } @$mods;
|
||||
$info || &error($text{'install_emissing'});
|
||||
if ($config{'standard_url'}) {
|
||||
($host, $port, $page, $ssl) = &parse_http_url(
|
||||
$config{'standard_url'});
|
||||
$host || &error($text{'standard_eurl'});
|
||||
}
|
||||
else {
|
||||
($host, $port, $page, $ssl) = ($standard_host, $standard_port,
|
||||
$standard_page, $standard_ssl);
|
||||
}
|
||||
($host, $port, $page, $ssl) = &parse_http_url(
|
||||
$info->[2], $host, $port, $page, $ssl);
|
||||
$progress_callback_url = $info->[2];
|
||||
$file = &transname($info->[2]);
|
||||
&http_download($host, $port, $page, $file, \$error,
|
||||
\&progress_callback, $ssl);
|
||||
if ($in{'checksig'} && !$error) {
|
||||
$error = &check_update_signature($host, $port, $page,
|
||||
$ssl, undef, undef, $file, 2);
|
||||
}
|
||||
&inst_error($error) if ($error);
|
||||
}
|
||||
|
||||
# Install the module(s)
|
||||
$rv = &install_webmin_module($file, $need_unlink, $in{'nodeps'},
|
||||
|
||||
+1
-3
@@ -200,13 +200,11 @@ mods_install=Install Module
|
||||
mods_local=From local file
|
||||
mods_uploaded=From uploaded file
|
||||
mods_ftp=From HTTP or FTP URL
|
||||
mods_standard=Standard module from <a href='$1' target=_new>www.webmin.com</a>
|
||||
mods_standard2=Standard module
|
||||
mods_third=Third party module from
|
||||
mods_thsel=Select..
|
||||
mods_nodeps=Ignore dependencies?
|
||||
mods_nodeps2=Ignore module dependencies when deleting
|
||||
mods_grant2=Grant access only to users and groups :
|
||||
mods_grant2=Grant access only to users and groups
|
||||
mods_grant1=Grant access to all Webmin users
|
||||
mods_checksig=Check signature file for downloaded modules?
|
||||
mods_installok=Install Module
|
||||
|
||||
Reference in New Issue
Block a user