X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=bb5d7ed636734fed5e00f88d855173afac0dfee4;hb=46a184ff62888899dce2831f0b67fc9173ef27d7;hp=aee73927645d2b28cec5aa6369b18bef6c7df8fb;hpb=eec8160076a4381b54b3c1ee0266d436721319f8;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index aee73927..bb5d7ed6 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,94 +1,109 @@ _("Message Filters"), - 'url' => '../plugins/filters/options.php', - 'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."), - 'js' => false - ); +} - if ($AllowSpamFilters) { - $optpage_blocks[] = array( +function squirrelmail_plugin_optpage_register_block() { + global $optpage_blocks; + global $AllowSpamFilters; + + $optpage_blocks[] = array( + 'name' => _("Message Filters"), + 'url' => '../plugins/filters/options.php', + 'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."), + 'js' => false + ); + + if ($AllowSpamFilters) { + $optpage_blocks[] = array( 'name' => _("SPAM Filters"), 'url' => '../plugins/filters/spamoptions.php', 'desc' => _("SPAM filters allow you to select from various DNS based blacklists to detect junk email in your INBOX and move it to another folder (like Trash)."), 'js' => false - ); - } - } + ); + } +} ?>