"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/bad_behaviour/src/blackhole.inc.php" between
wacko.6.1.16.zip and wacko.6.1.17.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

blackhole.inc.php  (wacko.6.1.16):blackhole.inc.php  (wacko.6.1.17)
skipping to change at line 64 skipping to change at line 64
{ {
// Can't use IPv6 addresses yet // Can't use IPv6 addresses yet
if (@is_ipv6($package['ip'])) return false; if (@is_ipv6($package['ip'])) return false;
if (@!$settings['httpbl_key']) return false; if (@!$settings['httpbl_key']) return false;
// Workaround for "MySQL server has gone away" // Workaround for "MySQL server has gone away"
bb2_db_query("SET @@session.wait_timeout = 90"); bb2_db_query("SET @@session.wait_timeout = 90");
$find = implode('.', array_reverse(explode('.', $package['ip']))); $find = implode('.', array_reverse(explode('.', $package['ip'])));
$result = gethostbynamel($settings['httpbl_key'].".${find}.dnsbl.httpbl.o rg."); $result = gethostbynamel($settings['httpbl_key'].".{$find}.dnsbl.httpbl.o rg.");
if (!empty($result)) if (!empty($result))
{ {
$ip = explode('.', $result[0]); $ip = explode('.', $result[0]);
if ( $ip[0] == 127 && ($ip[3] & 7) if ( $ip[0] == 127 && ($ip[3] & 7)
&& $ip[2] >= $settings['httpbl_threat'] && $ip[2] >= $settings['httpbl_threat']
&& $ip[1] <= $settings['httpbl_maxage']) && $ip[1] <= $settings['httpbl_maxage'])
{ {
return '2b021b1f'; return '2b021b1f';
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)