Changeset 1468:3132a0aca046 for plugins/antispam
- Timestamp:
- 08/19/13 09:55:29 (12 years ago)
- Branch:
- default
- Parents:
- 1466:e67efe636ce1 (diff), 1467:917fc08f3a59 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/filters/class.dc.filter.iplookup.php
r1454 r1468 44 44 } 45 45 46 $match = array();47 48 46 $bls = $this->getServers(); 49 47 $bls = preg_split('/\s*,\s*/',$bls); 50 48 51 foreach ($bls as $bl) 52 { 49 foreach ($bls as $bl) { 53 50 if ($this->dnsblLookup($ip,$bl)) { 54 $match[] = $bl; 51 // Pass by reference $status to contain matching DNSBL 52 $status = $bl; 53 return true; 55 54 } 56 }57 58 if (!empty($match)) {59 $status = substr(implode(', ',$match),0,128);60 return true;61 55 } 62 56 } -
plugins/antispam/filters/class.dc.filter.iplookup.php
r1361 r1468 78 78 '<form action="'.html::escapeURL($url).'" method="post">'. 79 79 '<fieldset><legend>' . __('IP Lookup servers') . '</legend>'. 80 '<p><label for="bls">'.__('Add here a coma separated list of servers.'). 80 '<p><label for="bls">'.__('Add here a coma separated list of servers.').'</label>'. 81 81 form::textarea('bls',40,3,html::escapeHTML($bls),'maximal'). 82 82 '</p>'. 83 '<p><input type="submit" value="'.__('Save').'" /></ label></p>'.83 '<p><input type="submit" value="'.__('Save').'" /></p>'. 84 84 $this->core->formNonce().'</p>'. 85 85 '</fieldset>'.
Note: See TracChangeset
for help on using the changeset viewer.