--updated--

This commit is contained in:
scVnner 2018-12-07 21:54:34 +02:00
parent fcd9c499d8
commit 9d358a67a1
1 changed files with 2 additions and 4 deletions

View File

@ -279,11 +279,9 @@ function main( int $argc, array $argv ) : void
$resp = get_abuser_info( $url, $opts->api_key, $ip, (int) $days, $opts->verbose ); $resp = get_abuser_info( $url, $opts->api_key, $ip, (int) $days, $opts->verbose );
if( is_array( $resp ) ){ if( is_array( $resp ) ){
for( $i = 0 ; $i < sizeof( $resp ) ; $i++ ) for( $i = 0 ; $i < sizeof( $resp ) ; $i++ ){
{
echo "\n"; echo "\n";
foreach( ( $resp[ $i ] ) as $k => $v ) foreach( ( $resp[ $i ] ) as $k => $v ){
{
$tab = ( $k == "id" || $k == "ip" ) ? "\t\t\t " : "\t\t " ; $tab = ( $k == "id" || $k == "ip" ) ? "\t\t\t " : "\t\t " ;
$percent = ( $k == "abuseConfidenceScore" ) ? "%" : "" ; $percent = ( $k == "abuseConfidenceScore" ) ? "%" : "" ;
if ( $k == "isWhitelisted" ) $tab = "\t "; if ( $k == "isWhitelisted" ) $tab = "\t ";