json_encode( array( 'logs_cleared_by' => 'manually_cleared', 'blocked_spams' => $spam['spam_count'] ?? '', ) ), ); ( class_exists( 'OCPushStats' ) ? \OCPushStats::push_stats_performance_cache( 'delete', 'setting', 'logs', ONECOM_SP_PLUGIN_SLUG, $additional_info ) : '' ); $spam['records'] = array(); $spam['spam_count'] = 0; oc_save_sp_options( $spam, 'onecom_sp_spam_logs' ); $success_notice = '

' . __( 'Spam Logs cleared!', 'onecom-sp' ) . '

'; } $oc_nonce = wp_create_nonce( 'one_sp_nonce' ); if ( ! empty( $success_notice ) ) { echo "$success_notice"; }?>
' . __( 'No logs found!', 'onecom-sp' ) . '

'; return false; } else { $spam_logs = $spam['records']; } ?>

$log ) { $ip = $log[0]; $email = $log[1]; $user_name = $log[2]; $url = $log[3]; $detection = $log[4]; echo ""; } ?>
URL
$key $ip $email $user_name $url $detection
$log ) { $mobile_view .= '
'; $mobile_view .= '

' . __( 'Date & Time', 'onecom-sp' ) . '' . $key . '

'; $mobile_view .= '

' . __( 'IP', 'onecom-sp' ) . '' . $ip . '

'; $mobile_view .= '

' . __( 'Email', 'onecom-sp' ) . '' . $email . '

'; $mobile_view .= '

' . __( 'Username', 'onecom-sp' ) . '' . $user_name . '

'; $mobile_view .= '

URL' . $url . '

'; $mobile_view .= '

' . __( 'Reason', 'onecom-sp' ) . '' . $detection . '

'; } echo $mobile_view; ?>