".WEB_log_detail_for." $fip :: "); ?>
> DNS:  >

= ?", "ts < ?", "auth_id = ?", "dst_ip = ?" ]; if (!empty($rgateway) && $rgateway > 0) { $conditions[] = "router_id = ?"; $params[] = (int)$rgateway; } $where = implode(' AND ', $conditions); $fsql = " SELECT proto, src_ip, src_port, SUM(bytes) AS tin FROM traffic_detail WHERE $where GROUP BY src_ip, src_port, proto ORDER BY tin DESC LIMIT 10 "; $userdata = get_records_sql($db_link, $fsql, $params); foreach ($userdata as $row) { print "\n"; $proto_name = getprotobynumber($row['proto']); if (!$proto_name) { $proto_name = $row['proto']; } print "\n"; print "\n"; $ip_name = '-'; if ($rdns) { $ip_name = ResolveIP($db_link, $row['src_ip']); } print "\n"; print "\n"; print "\n"; print "\n"; } ?>
DNS
" . $proto_name . "" . long2ip($row['src_ip']) . "" . $ip_name . "" . $row['src_port'] . "" . fbytes($row['tin']) . "
= ?", "ts < ?", "auth_id = ?", "src_ip = ?" ]; if (!empty($rgateway) && $rgateway > 0) { $conditions[] = "router_id = ?"; $params[] = (int)$rgateway; } $where = implode(' AND ', $conditions); $fsql = " SELECT proto, dst_ip, dst_port, SUM(bytes) AS tout FROM traffic_detail WHERE $where GROUP BY dst_ip, dst_port, proto ORDER BY tout DESC LIMIT 10 "; $userdata = get_records_sql($db_link, $fsql, $params); foreach ($userdata as $row) { print "\n"; $proto_name = getprotobynumber($row['proto']); if (!$proto_name) { $proto_name = $row['proto']; } print "\n"; print "\n"; $ip_name = '-'; if ($rdns) { $ip_name = ResolveIP($db_link, $row['dst_ip']); } print "\n"; print "\n"; print "\n"; print "\n"; } ?>
DNS
" . $proto_name . "" . long2ip($row['dst_ip']) . "" . $ip_name . "" . $row['dst_port'] . "" . fbytes($row['tout']) . "