ich bekomme auf der Seite eines meines Mandanten zwar alle Inhalte angezeigt, im Hintergrund steht aber folgende Fehlermeldung:
Code: Alles auswählen
ction IP_match($network, $mask, $ip) { bcscale(3); $ip_long=ip2long($ip); $mask_long=ip2long($network); # # Convert mask to divider # if (ereg("^[0-9]+$",$mask)) { /// 212.50.13.0/27 style mask (Cisco style) $divider=bcpow(2,(32-$mask)); } else { /// 212.50.13.0/255.255.255.0 style mask $xmask=ip2long($mask); if ( $xmask < 0 ) $xmask=bcadd(bcpow(2,32),$xmask); $divider=bcsub(bcpow(2,32),$xmask); } # # Test is IP within specified mask # if ( floor(bcdiv($ip_long,$divider)) == floor(bcdiv($mask_long,$divider)) ){ # match - this IP is within specified mask return true; } else { # fail - this IP is NOT within specified mask return false; } } page_close(); ?>
Code: Alles auswählen
[26-Nov-2003 12:37:07] PHP Parse error: parse error in /var/www/server.de/mandant/htdocs/cms/front_content.php(533) : eval()'d code on line 138