From: Stefan Schantl Date: Mon, 11 Aug 2025 17:38:13 +0000 (+0200) Subject: ids.cgi: Allow to configure report summary feature X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c397a80d62c0ebcc02e3d4929b4b727940b3811;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Allow to configure report summary feature Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 362cbec87..fc3e58368 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -575,7 +575,8 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) { } # Check if the e-mail feature should be used. - if ($cgiparams{'ENABLE_EMAIL'} eq "on") { + if (($cgiparams{'ENABLE_EMAIL'} eq "on") || ($cgiparams{'ENABLE_REPORT_DAILY'} eq "on") || + ($cgiparams{'ENABLE_REPORT_WEEKLY'} eq "on") || ($cgiparams{'ENABLE_REPORT_MONTLY'} eq "on")) { # Check if a sender mail address has been provided. unless($cgiparams{'EMAIL_SENDER'}) { $errormessage = $Lang::tr{'ids no email sender'}; @@ -1036,6 +1037,16 @@ sub show_mainpage() { $checked{'ENABLE_EMAIL'}{'on'} = ''; $checked{'ENABLE_EMAIL'}{$idssettings{'ENABLE_EMAIL'}} = "checked='checked'"; + $checked{'ENABLE_REPORT_DAILY'}{'off'} = ''; + $checked{'ENABLE_REPORT_DAILY'}{'on'} = ''; + $checked{'ENABLE_REPORT_DAILY'}{$idssettings{'ENABLE_REPORT_DAILY'}} = "checked='checked'"; + $checked{'ENABLE_REPORT_WEEKLY'}{'off'} = ''; + $checked{'ENABLE_REPORT_WEEKLY'}{'on'} = ''; + $checked{'ENABLE_REPORT_WEEKLY'}{$idssettings{'ENABLE_REPORT_WEEKLY'}} = "checked='checked'"; + $checked{'ENABLE_REPORT_MONTHLY'}{'off'} = ''; + $checked{'ENABLE_REPORT_MONTHLY'}{'on'} = ''; + $checked{'ENABLE_REPORT_MONTHLY'}{$idssettings{'ENABLE_REPORT_MONTHLY'}} = "checked='checked'"; + # Draw current state of the IDS &Header::opensection(); @@ -1133,7 +1144,7 @@ print < - + @@ -1143,7 +1154,50 @@ print < - + + + + + + +
+ $Lang::tr{'ids summary reports'} +
+ + + + + + + + + + + + + + + + + + diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 9e064a407..7fff5164c 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1416,6 +1416,9 @@ 'ids provider' => 'Regelset-Anbieter', 'ids provider settings' => 'Regelset-Anbieter-Einstellungen', 'ids remove rule structures' => 'Entferne alte Regelstrukturen...', +'ids reports daily' => 'Täglicher Report', +'ids reports weekly' => 'Wöchentlicher Report', +'ids reports monthly' => 'Monatlicher Report', 'ids reset provider' => 'Providereinstellungen zurücksetzen', 'ids rules update' => 'Regelsatz', 'ids ruleset autoupdate in progress' => 'Der Regelsatz wird gerade aktualisiert. Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde...', @@ -1423,6 +1426,7 @@ 'ids ruleset settings' => 'Regelsatzeinstellungen', 'ids rulesets' => 'Regelsätze', 'ids show' => 'Anzeigen', +'ids summary reports' => 'Zusammenfassender Report', 'ids the choosen provider is already in use' => 'Der gewhählte Provider wird bereits verwendet.', 'ids unable to download the ruleset' => 'Das Regelset konnte nicht heruntergeladen werden.', 'ids unsupported provider' => 'Provider wird nicht mehr unterstützt', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index cbb964b48..77ab74d36 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1474,6 +1474,9 @@ 'ids provider eol' => '(EOL)', 'ids provider settings' => 'Provider settings', 'ids remove rule structures' => 'Remove old rule structures...', +'ids reports daily' => 'Daily reports', +'ids reports weekly' => 'Weekly reports', +'ids reports monthly' => 'Monthly reports', 'ids reset provider' => 'Reset provider', 'ids rules update' => 'Ruleset', 'ids ruleset autoupdate in progress' => 'Ruleset update in progress. Please wait until all operations have completed successfully...', @@ -1482,6 +1485,7 @@ 'ids rulesets' => 'Rulesets', 'ids show' => 'Show', 'ids subscription code required' => 'The selected ruleset requires a subscription code', +'ids summary reports' => 'Summary reports', 'ids the choosen provider is already in use' => 'The choosen provider is already in use.', 'ids unable to download the ruleset' => 'Unable to download the ruleset', 'ids unsupported provider' => 'Provider is not supported anymore',
+ + + +
+ + + +
+ + +