mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- a bunch of fixes
- added todos to the updater to make sure i do not forget. :) git-svn-id: file:///svn/phpbb/trunk@6698 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -870,9 +870,10 @@ class session
|
||||
* Only IPv4 (rbldns does not support AAAA records/IPv6 lookups)
|
||||
*
|
||||
* @author satmd (from the php manual)
|
||||
* @param string $mode register/post - spamcop for example is ommitted for posting
|
||||
* @return false if ip is not blacklisted, else an array([checked server], [lookup])
|
||||
*/
|
||||
function check_dnsbl($ip = false)
|
||||
function check_dnsbl($mode, $ip = false)
|
||||
{
|
||||
if ($ip === false)
|
||||
{
|
||||
@@ -880,11 +881,15 @@ class session
|
||||
}
|
||||
|
||||
$dnsbl_check = array(
|
||||
'bl.spamcop.net' => 'http://spamcop.net/bl.shtml?',
|
||||
'list.dsbl.org' => 'http://dsbl.org/listing?',
|
||||
'sbl-xbl.spamhaus.org' => 'http://www.spamhaus.org/query/bl?ip=',
|
||||
);
|
||||
|
||||
if ($mode == 'register')
|
||||
{
|
||||
$dnsbl_check['bl.spamcop.net'] = 'http://spamcop.net/bl.shtml?';
|
||||
}
|
||||
|
||||
if ($ip)
|
||||
{
|
||||
$quads = explode('.', $ip);
|
||||
|
Reference in New Issue
Block a user