]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Allow to configure report summary feature
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 11 Aug 2025 17:38:13 +0000 (19:38 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 files changed:
doc/language_issues.en
doc/language_issues.es
doc/language_issues.fr
doc/language_issues.it
doc/language_issues.nl
doc/language_issues.pl
doc/language_issues.ru
doc/language_issues.tr
doc/language_issues.tw
doc/language_issues.zh
doc/language_missings
html/cgi-bin/ids.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

index 84e1ac959c5f0c4c8962bb3863f2fa0376a37991..f9f39b023335e8d7c36ea074b13e78ba7ea5cb5c 100644 (file)
@@ -1064,12 +1064,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index 9211ff09385fda2d00881e2f97144ab95e4fb6c3..6208826727627cc14a70dfd38ceb986833305ab3 100644 (file)
@@ -1063,6 +1063,10 @@ WARNING: untranslated string: ids invalid mail address = Is or contains an inval
 WARNING: untranslated string: ids no email recipients = No email recipients given
 WARNING: untranslated string: ids no email sender = No sender email address specified
 WARNING: untranslated string: ids provider eol = (EOL)
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
 WARNING: untranslated string: mdstat = Mdstat
index c9b2740e8f2ae57a375afae0a8c7df4c6a528594..4f52d7b9d82d291551470901ede169d6876f28f6 100644 (file)
@@ -1051,7 +1051,11 @@ WARNING: untranslated string: ids invalid mail address = Is or contains an inval
 WARNING: untranslated string: ids no email recipients = No email recipients given
 WARNING: untranslated string: ids no email sender = No sender email address specified
 WARNING: untranslated string: ids provider eol = (EOL)
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids rulesets = Rulesets
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: import connection = Import a Connection
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: invalid endpoint = Invalid Endpoint
index 0fc6a0f5a1996e4bc0e035e86196e8854c3161b7..c02be127d9f22ddd0578a08d76bfef728cf87edb 100644 (file)
@@ -1186,12 +1186,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index 3f34a075a48f997fd34db2d44cca13658d580a77..12aa189815866e931d31cec8acf5beb120757983 100644 (file)
@@ -1192,12 +1192,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index 3137890f8f10dfd2b4f2f2b5456efea45d65296b..0acc6b2a5ca3d1ddbbe3c54ce5b63f14a8f51049 100644 (file)
@@ -1311,12 +1311,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index 2c48a900ceb425b3b2b28014f9f0352d1e0d0e40..173b5f0fe0de4ad135082cfee681c0cc089c810a 100644 (file)
@@ -1309,12 +1309,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index bf241dbe1bfc3b0e47dfed361c6e96d4a609c16e..793a22b5d665b879797e90006c014c77c5c5986c 100644 (file)
@@ -1130,12 +1130,16 @@ WARNING: untranslated string: ids provider = Provider
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids provider settings = Provider settings
 WARNING: untranslated string: ids remove rule structures = Remove old rule structures...
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
 WARNING: untranslated string: ids reset provider = Reset provider
 WARNING: untranslated string: ids ruleset autoupdate in progress = Ruleset update in progress. Please wait until all operations have completed successfully...
 WARNING: untranslated string: ids ruleset is up to date = No update required - The ruleset is up to date.
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: ids show = Show
 WARNING: untranslated string: ids subscription code required = The selected ruleset requires a subscription code
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: ids the choosen provider is already in use = The choosen provider is already in use.
 WARNING: untranslated string: ids unable to download the ruleset = Unable to download the ruleset
 WARNING: untranslated string: ids visit provider website = Visit provider website
index c9d30952ae91b660122164e44b7ddbed7f1ff09c..3b6b449ec62e87225f541e810b4fcbde24428a79 100644 (file)
@@ -1071,6 +1071,10 @@ WARNING: untranslated string: ids email sender = Sender Address
 WARNING: untranslated string: ids invalid mail address = Is or contains an invalid mail address.
 WARNING: untranslated string: ids no email recipients = No email recipients given
 WARNING: untranslated string: ids no email sender = No sender email address specified
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
 WARNING: untranslated string: max bandwidth = Maximum bandwidth
index c9d30952ae91b660122164e44b7ddbed7f1ff09c..3b6b449ec62e87225f541e810b4fcbde24428a79 100644 (file)
@@ -1071,6 +1071,10 @@ WARNING: untranslated string: ids email sender = Sender Address
 WARNING: untranslated string: ids invalid mail address = Is or contains an invalid mail address.
 WARNING: untranslated string: ids no email recipients = No email recipients given
 WARNING: untranslated string: ids no email sender = No sender email address specified
+WARNING: untranslated string: ids reports daily = Daily reports
+WARNING: untranslated string: ids reports monthly = Monthly reports
+WARNING: untranslated string: ids reports weekly = Weekly reports
+WARNING: untranslated string: ids summary reports = Summary reports
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
 WARNING: untranslated string: max bandwidth = Maximum bandwidth
index 11fdbf54f7221c2c19ccbebbd7a91ab861187d2b..8b1220e5ba414b21e976d564ccb37aec0d83ac6e 100644 (file)
 < ids no email recipients
 < ids no email sender
 < ids provider eol
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
+< ids summary reports
 < indirect target selection
 < mdstat
 < offloaded
 < ids no email recipients
 < ids no email sender
 < ids provider eol
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids rulesets
+< ids summary reports
 < ids unsupported provider
 < import connection
 < indirect target selection
 < ids provider eol
 < ids provider settings
 < ids remove rule structures
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids reset provider
 < ids ruleset autoupdate in progress
 < ids ruleset is up to date
 < ids ruleset settings
 < ids show
 < ids subscription code required
+< ids summary reports
 < ids the choosen provider is already in use
 < ids unable to download the ruleset
 < ids unsupported provider
 < ids provider eol
 < ids provider settings
 < ids remove rule structures
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids reset provider
 < ids ruleset autoupdate in progress
 < ids ruleset is up to date
 < ids ruleset settings
 < ids show
 < ids subscription code required
+< ids summary reports
 < ids the choosen provider is already in use
 < ids unable to download the ruleset
 < ids unsupported provider
 < ids provider eol
 < ids provider settings
 < ids remove rule structures
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids reset provider
 < ids ruleset autoupdate in progress
 < ids ruleset is up to date
 < ids ruleset settings
 < ids show
 < ids subscription code required
+< ids summary reports
 < ids the choosen provider is already in use
 < ids unable to download the ruleset
 < ids unsupported provider
 < ids provider eol
 < ids provider settings
 < ids remove rule structures
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids reset provider
 < ids ruleset autoupdate in progress
 < ids ruleset is up to date
 < ids ruleset settings
 < ids show
 < ids subscription code required
+< ids summary reports
 < ids the choosen provider is already in use
 < ids unable to download the ruleset
 < ids unsupported provider
 < ids provider eol
 < ids provider settings
 < ids remove rule structures
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
 < ids reset provider
 < ids ruleset autoupdate in progress
 < ids ruleset is up to date
 < ids ruleset settings
 < ids show
 < ids subscription code required
+< ids summary reports
 < ids the choosen provider is already in use
 < ids unable to download the ruleset
 < ids unsupported provider
 < ids invalid mail address
 < ids no email recipients
 < ids no email sender
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
+< ids summary reports
 < indirect target selection
 < max bandwidth
 < offloaded
 < ids invalid mail address
 < ids no email recipients
 < ids no email sender
+< ids reports daily
+< ids reports monthly
+< ids reports weekly
+< ids summary reports
 < indirect target selection
 < max bandwidth
 < offloaded
index 362cbec87414e55daf5ab6e5b79b3a1a2340a211..fc3e583682b9dc5998fffac564efbf0b4e0c3bad 100644 (file)
@@ -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 <<END
                                        </td>
 
                                        <td>
-                                               <input type="text" name="EMAIL_SENDER" value="$idssettings{'EMAIL_SENDER'}">
+                                               <input type="text" name="EMAIL_SENDER" value="$email_sender">
                                        <td>
                                </tr>
 
@@ -1143,7 +1154,50 @@ print <<END
                                        </td>
 
                                        <td>
-                                               <input type="text" name="EMAIL_RECIPIENTS" value="$idssettings{'EMAIL_RECIPIENTS'}">
+                                               <input type="text" name="EMAIL_RECIPIENTS" value="$email_recipients">
+                                       </td>
+                               </tr>
+
+                       </table>
+
+                       <h6>
+                               $Lang::tr{'ids summary reports'}
+                       </h6>
+
+                       <table class="form">
+                               <tr>
+                                       <td>
+                                               <label for="ENABLE_REPORT_DAILY">
+                                                       $Lang::tr{'ids reports daily'}
+                                               </label>
+                                       </td>
+
+                                       <td>
+                                               <input type='checkbox' name='ENABLE_REPORT_DAILY' id="ENABLE_REPORT_DAILY" $checked{'ENABLE_REPORT_DAILY'}{'on'}>
+                                       </td>
+                               </tr>
+
+                               <tr>
+                                       <td>
+                                               <label for="ENABLE_REPORT_WEEKLY">
+                                                       $Lang::tr{'ids reports weekly'}
+                                               </label>
+                                       </td>
+
+                                       <td>
+                                               <input type='checkbox' name='ENABLE_REPORT_WEEKLY' id="ENABLE_REPORT_WEEKLY" $checked{'ENABLE_REPORT_WEEKLY'}{'on'}>
+                                       </td>
+                               </tr>
+
+                               <tr>
+                                       <td>
+                                               <label for="ENABLE_REPORT_MONTHLY">
+                                                       $Lang::tr{'ids reports monthly'}
+                                               </label>
+                                       </td>
+
+                                       <td>
+                                               <input type='checkbox' name='ENABLE_REPORT_MONTHLY' id="ENABLE_REPORT_MONTHLY" $checked{'ENABLE_REPORT_MONTHLY'}{'on'}>
                                        </td>
                                </tr>
 
index 9e064a407851a1fef0b46639fdad9701a0e8253d..65fa5f38f1da0a8feafa490bbf7e1985cae1ce34 100644 (file)
 '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 monthly' => 'Monatlicher Report',
+'ids reports weekly' => 'Wöchentlicher 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...',
 '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',
index cbb964b482df914b3066b70494324e38f7d00381..ad3c55969fa558935a1268cf04485fdf9f539960 100644 (file)
 'ids provider eol' => '(EOL)',
 'ids provider settings' => 'Provider settings',
 'ids remove rule structures' => 'Remove old rule structures...',
+'ids reports daily' => 'Daily reports',
+'ids reports monthly' => 'Monthly reports',
+'ids reports weekly' => 'Weekly 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...',
 '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',