From: Stefan Schantl Date: Sun, 17 Apr 2022 13:21:20 +0000 (+0200) Subject: ids.cgi: Disable manual update button if a provider is not longer X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf5364413ab44dff0640396653fef4e39ace4d7;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Disable manual update button if a provider is not longer supported. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 2a837bfc1e..3ee66e06b1 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1780,7 +1780,8 @@ END ## Function to show the area where additional provider actions can be done. # sub show_additional_provider_actions() { - my $disabled; + my $disabled_reset; + my $disabled_update; my %used_providers = (); # Read-in providers settings file. @@ -1795,7 +1796,12 @@ sub show_additional_provider_actions() { # Disable the reset provider button if no provider modified sids file exists. unless (-f $modifications_file) { - $disabled = "disabled"; + $disabled_reset = "disabled"; + } + + # Disable the manual update button if the provider is not longer supported. + unless ($IDS::Ruleset::Providers{$provider}) { + $disabled_update = "disabled"; } &Header::openbox('100%', 'center', ""); @@ -1805,8 +1811,8 @@ sub show_additional_provider_actions() { - - + +