- echo '</table>'.
- '<table width=80% align=center border=0 cellpadding=2 cellspacing=0">'.
- '<tr><td> </td></tr>'.
- '</table>';
-
- if ($AllowSpamFilters) {
-
- echo "<table width=95% align=center border=0 cellpadding=2 cellspacing=0 bgcolor=\"$color[0]\">".
- '<tr><th align=center>' . _("Spam Filtering") . '</th></tr>'.
- '</table>';
- if (! isset($action) || $action != 'spam') {
-
- echo '<p align=center>[<a href="options.php?action=spam">' . _("Edit") . '</a>]<br>';
- printf( _("Spam is sent to <b>%s</b>"), ($filters_spam_folder?$filters_spam_folder:_("[<i>not set yet</i>]") ) );
- echo '<br>';
- printf( _("Spam scan is limited to <b>%s</b>"), (($filters_spam_scan == 'new')?_("New Messages Only"):_("All Messages") ) );
- echo '</p>'.
- "<table border=0 cellpadding=3 cellspacing=0 align=center bgcolor=\"$color[0]\">";
-
- $spam_filters = load_spam_filters();
-
- foreach ($spam_filters as $Key => $Value) {
- echo '<tr><th align=center>';
-
- if ($spam_filters[$Key]['enabled']) {
- echo _("ON");
- } else {
- echo _("OFF");
- }
-
- echo '</th><td> - </td><td>';
-
- if ($spam_filters[$Key]['link']) {
- echo '<a href="' .
- $spam_filters[$Key]['link'] .
- '" target="_blank">';
- }
-
- echo $spam_filters[$Key]['name'];
- if ($spam_filters[$Key]['link']) {
- echo '</a>';
- }
- echo "</td></tr>\n";