mirror of
https://github.com/sumx86/AbuseIPDB.git
synced 2024-09-28 21:31:28 +02:00
--updated--
This commit is contained in:
parent
0223925c5f
commit
fcd9c499d8
@ -298,8 +298,7 @@ function main( int $argc, array $argv ) : void
|
||||
}
|
||||
else{
|
||||
echo "\n";
|
||||
foreach( ( $resp ) as $k => $v )
|
||||
{
|
||||
foreach( ( $resp ) as $k => $v ){
|
||||
$tab = ( $k == "id" || $k == "ip" ) ? "\t\t\t " : "\t\t " ;
|
||||
$percent = ( $k == "abuseConfidenceScore" ) ? "%" : "" ;
|
||||
|
||||
@ -338,8 +337,7 @@ function main( int $argc, array $argv ) : void
|
||||
else{
|
||||
foreach( $resp as $succKey => $succVal ){
|
||||
if( is_array( $succVal ) ){
|
||||
for( $i = 0 ; $i < sizeof( $succVal ) ; $i++ )
|
||||
{
|
||||
for( $i = 0 ; $i < sizeof( $succVal ) ; $i++ ){
|
||||
echo "\n";
|
||||
foreach( $succVal[ $i ] as $key => $val ){
|
||||
echo "\n" . GREEN . "[".RED."*".NONE.GREEN."] ".NONE. strtoupper( $key ) ." - ".RED. $val;
|
||||
|
Loading…
Reference in New Issue
Block a user