Changeset 2566:9bf417837888 for plugins/antispam/filters
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- Location:
- plugins/antispam/filters
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/filters/class.dc.filter.ip.php
r2322 r2566 321 321 } 322 322 } 323 ?> -
plugins/antispam/filters/class.dc.filter.iplookup.php
r2322 r2566 114 114 } 115 115 } 116 ?> -
plugins/antispam/filters/class.dc.filter.linkslookup.php
r1366 r2566 15 15 { 16 16 public $name = 'Links Lookup'; 17 17 18 18 private $server = 'multi.surbl.org'; 19 19 20 20 protected function setInfo() 21 21 { 22 22 $this->description = __('Checks links in comments against surbl.org'); 23 23 } 24 24 25 25 public function getStatusMessage($status,$comment_id) 26 26 { 27 27 return sprintf(__('Filtered by %1$s with server %2$s.'),$this->guiLink(),$status); 28 28 } 29 29 30 30 public function isSpam($type,$author,$email,$site,$ip,$content,$post_id,&$status) 31 31 { … … 33 33 return; 34 34 } 35 35 36 36 $urls = $this->getLinks($content); 37 37 array_unshift($urls,$site); 38 38 39 39 foreach ($urls as $u) 40 40 { … … 53 53 $host = $domain_elem[$i - 1].'.'.$host; 54 54 $i--; 55 if (substr(gethostbyname($host.'.'.$this->server),0,3) == "127" ) 55 if (substr(gethostbyname($host.'.'.$this->server),0,3) == "127" ) 56 56 { 57 57 $status = substr($domain,0,128); 58 58 return true; 59 } 59 } 60 60 } while ($i > 0); 61 61 } 62 62 } 63 63 64 64 private function getLinks($text) 65 65 { … … 70 70 } 71 71 } 72 ?> -
plugins/antispam/filters/class.dc.filter.words.php
r2322 r2566 362 362 } 363 363 } 364 ?>
Note: See TracChangeset
for help on using the changeset viewer.