=".$subnet_range['start']." and User_auth.ip_int<=".$subnet_range['stop']; } $ip_list_filter = $subnet_filter; $ip_where = ''; if (!empty($f_comment)) { if (checkValidIp($f_comment)) { $ip_where = " and ip_int=inet_aton('" . $f_comment . "') "; } if (checkValidMac($f_comment)) { $ip_where = " and mac='" . mac_dotted($f_comment) . "' "; } if (empty($ip_where)) { $ip_where=" and (User_auth.comments LIKE '$f_comment' OR User_auth.dhcp_hostname LIKE '$f_comment')"; } $ip_list_filter = $ip_where; } print_ip_submenu($page_url); ?>