--updated--

This commit is contained in:
scVnner 2018-12-07 19:39:08 +02:00
parent 0223925c5f
commit fcd9c499d8
1 changed files with 2 additions and 4 deletions

View File

@ -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;