Jelajahi Sumber

Changed default value for SpamFilters_YourHop

bbice 23 tahun lalu
induk
melakukan
00d94e25a5
2 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 4 0
      plugins/filters/filters.php
  2. 4 0
      plugins/filters/spamoptions.php

+ 4 - 0
plugins/filters/filters.php

@@ -274,6 +274,10 @@
                         $IsSpam ++;
                                 break;  // no sense in checking more IPs
                             }
+			// If we've checked one IP and YourHop is just a space
+			if ($SpamFilters_YourHop == ' ') {
+			   break;  // don't check any more
+			}
                         }
                         }
                     }

+ 4 - 0
plugins/filters/spamoptions.php

@@ -52,6 +52,10 @@
            '<tr><th align=center>' . _("Spam Filtering") . '</th></tr>'.
        '</table>';
 
+    if ($SpamFilters_YourHop == ' ') {
+       echo '<BR><center><b>WARNING! Tell your admin to set the SpamFilters_YourHop variable</b></center><BR>';
+    }
+
 
    if (isset($action) && $action == 'spam') {
        $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);