';
$aff_astable .= '
';
$aff_astable .= '
' . $img_flag . ' AS' . $as . ': ' . $asinfo['descr'] . '';
$aff_astable .= '
In the last '. $label . '
';
if ( !isset($nbytes[0]) ) $nbytes[0] = 0;
if ( !isset($nbytes[1]) ) $nbytes[1] = 0;
if ( !isset($nbytes[2]) ) $nbytes[2] = 0;
if ( !isset($nbytes[3]) ) $nbytes[3] = 0;
$aff_astable .= '
IPv4: ~ '.format_bytes($nbytes[0]).' in / ' . format_bytes($nbytes[1]) . '
';
if ($showv6) {
$aff_astable .= '
IPv6: ~ '.format_bytes($nbytes[2]).' in / ' . format_bytes($nbytes[3]) . '
';
}
// CUSTOM LINKS
$htmllinks = array();
foreach ($customlinks as $linkname => $url) {
$url = str_replace("%as%", $as, $url);
$htmllinks[] = "
" . htmlspecialchars($linkname) . "\n";
}
$aff_astable .= '
' . join(" | ", $htmllinks) . '
';
// RANK
$aff_astable .= '
';
$aff_astable .= '#' . ($i+1);
$aff_astable .= '
';
$aff_astable .= '
';
$rrdfile = getRRDFileForAS($as, $peerusage);
if ( file_exists($rrdfile) ) {
$img_v4 = '
' . getHTMLUrl($as, 4, $asinfo['descr'], $start, $end, $peerusage, $selected_links) . '';
if ($showv6) $img_v6 = '
' . getHTMLUrl($as, 6, $asinfo['descr'], $start, $end, $peerusage, $selected_links) . '';
} else { $img_v4 = $img_v6 = ""; }
if ( !$img_v4 ) $img_v4 = "
No data found for AS".$as."";
if ( !$img_v6 ) $img_v6 = "
No data found for AS".$as."";
if ($showv6) { $col = "5"; } else { $col="10"; }
$aff_astable .= '
';
$aff_astable .= $img_v4;
$aff_astable .= '
';
if ($showv6) {
$aff_astable .= '
';
$aff_astable .= $img_v6;
$aff_astable .= '
';
}
$aff_astable .= '
';
$aff_astable .= '