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