=? and user_auth.ip_int<=?"; $params[]=$subnet_range['start']; $params[]=$subnet_range['stop']; } $ip_list_filter = $subnet_filter; $ip_where = ''; if (!empty($f_description)) { if (checkValidIp($f_description)) { $ip_where = " and ip=?"; $params[]=$f_description; } if (checkValidMac($f_description)) { $ip_where = " and mac=?"; $params[]= mac_dotted($f_description); } if (empty($ip_where)) { $ip_where=" and (user_auth.description LIKE ? OR user_auth.dhcp_hostname LIKE ?)"; $params[]=$f_description; $params[]=$f_description; } $ip_list_filter = $ip_where; } print_ip_submenu($page_url); ?>