mirror of
https://github.com/sumx86/AbuseIPDB.git
synced 2024-09-30 06:01:31 +02:00
--updated--
This commit is contained in:
parent
fcd9c499d8
commit
9d358a67a1
@ -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 ";
|
||||||
|
Loading…
Reference in New Issue
Block a user