From 49c8f3fca4bb7f9d157bb59d4cc572d9b37edc2b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 9 Aug 2025 13:28:35 +0200 Subject: [PATCH] ids.cgi: Allow to configure new mail alert system Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 41 +++++++++++++++++++++++++++++++++++++++++ langs/de/cgi-bin/de.pl | 4 ++++ langs/en/cgi-bin/en.pl | 4 ++++ 3 files changed, 49 insertions(+) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 960e72ef1..8d9fbfc16 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1006,6 +1006,9 @@ sub show_mainpage() { $checked{'ENABLE_IDS'}{'off'} = ''; $checked{'ENABLE_IDS'}{'on'} = ''; $checked{'ENABLE_IDS'}{$idssettings{'ENABLE_IDS'}} = "checked='checked'"; + $checked{'ENABLE_EMAIL'}{'off'} = ''; + $checked{'ENABLE_EMAIL'}{'on'} = ''; + $checked{'ENABLE_EMAIL'}{$idssettings{'ENABLE_EMAIL'}} = "checked='checked'"; # Draw current state of the IDS &Header::opensection(); @@ -1087,6 +1090,44 @@ print < + + + $Lang::tr{'ids email alerts'} + + + + + +  $Lang::tr{'ids enable email alerts'} + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 210a701ff..9a944f16a 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1393,6 +1393,10 @@ 'ids download new ruleset' => 'Das neue Regelset wird heruntergeladen und entpackt. Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde...', 'ids enable' => 'Einbruchsverhinderungssystem aktivieren', 'ids enable automatic updates' => 'Automatische Updates aktivieren', +'ids enable email alerts' => 'Benachrichtigung per E-Mail aktivieren', +'ids email alerts' => 'E-Mail Benachrichtigungen', +'ids email sender' => 'Sender-Addresse', +'ids email recipients' => 'Empfänger-Addressen', 'ids extract ruleset' => 'Entpacke Regelset von:', 'ids finished' => 'Fertig...', 'ids force ruleset update' => 'Regelset jetzt aktualisieren', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 57ccaa701..a0f0ceb8a 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1451,6 +1451,10 @@ 'ids download new ruleset' => 'Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...', 'ids enable' => 'Enable Intrusion Prevention System', 'ids enable automatic updates' => 'Enable automatic updates', +'ids enable email alerts' => 'Enable e-mail alerts', +'ids email alerts' => 'E-Mail alerts', +'ids email sender' => 'Sender address', +'ids email recipients' => 'Recipients', 'ids extract ruleset' => 'Extracting ruleset for provider:', 'ids finished' => 'Finished...', 'ids force ruleset update' => 'Force ruleset update', -- 2.47.3