8,10 → 8,9 |
$is_addr_found = false; |
while ($snets->fetchInto($info_snets, DB_FETCHMODE_ASSOC)&&!$is_addr_found) { |
list($ip,$mask) = explode('/',$info_snets['subnet']); |
$is_addr_found = (ip2long($addr) >> (32 - $mask) == ip2long($ip) >> (32 - $mask)); |
if($is_addr_found) { |
$curnet =& $db->getOne("SELECT network FROM networks WHERE id=".$info_snets['network_id']); |
echo "Debug: ваша сеть ".$curnet; |
if (ip2long($addr) >> (32 - $mask) == ip2long($ip) >> (32 - $mask)) { |
$is_addr_found = true; |
$curnet = $info_snets['network_id']; |
} |
} |
|
93,7 → 92,9 |
$curalt = "Заморожен"; |
break; |
} |
echo " <td><a href='".$info_res['link_res']."'><img src='".$curimg."' alt='".$curalt."'></a></td>\n"; |
if($netlist[$i]==$curnet) echo " <td color='gold'>"; |
else echo " <td>" |
echo "<a href='".$info_res['link_res']."'><img src='".$curimg."' alt='".$curalt."'></a></td>\n"; |
} |
} |
echo "</tr>\n"; |