--- ./base_stat_ipaddr.php.orig 2010-03-05 16:06:17.000000000 +0100
+++ ./base_stat_ipaddr.php 2010-04-11 23:52:13.000000000 +0200
@@ -135,7 +135,7 @@
print "
\n";
*/
- if(ereg($ip, $contents)) {
+ if(preg_match("/$ip/", $contents)) {
$total++;
if( $total % 2 == 0 ) {
$color="DDDDDD";
@@ -143,7 +143,7 @@
$color="FFFFFF";
}
- $contents = ereg_replace(" ", " ", $contents);
+ $contents = preg_replace("/ /", " ", $contents);
$elements = explode(" ", $contents);
echo '