|
From: Paul S. O. <ps...@us...> - 2002-05-09 14:30:35
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv28664
Modified Files:
update_script.php
Log Message:
Alter ban_ip's when examining subnets ... this whole thing needs a review for IPv6
Index: update_script.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/update_script.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** update_script.php 9 May 2002 14:08:36 -0000 1.7
--- update_script.php 9 May 2002 14:13:45 -0000 1.8
***************
*** 163,168 ****
do
{
$sql_update[] = "UPDATE " . BANLIST_TABLE . "
! SET ban_ip = '" . decode_ip($row['ban_ip']) . "'
WHERE ban_id = " . $row['ban_id'];
}
--- 163,169 ----
do
{
+ $ban_ip = str_replace('255', '256', decode_ip($row['ban_ip']));
$sql_update[] = "UPDATE " . BANLIST_TABLE . "
! SET ban_ip = '$ban_ip'
WHERE ban_id = " . $row['ban_id'];
}
|