/home/altere25/infinet.finance/wp-content/plugins/ninjafirewall/lib
NameSizeModeActions
share/-0755rm
.htaccess3780644editdlrm
anti_malware.php26510644editdlrm
custom_firewall.php19440644editdlrm
custom_plugin.php19400644editdlrm
dashboard.php236880644editdlrm
dashboard_about.php27270644editdlrm
dashboard_statistics.php73490644editdlrm
email_sodium.php71630644editdlrm
events.php114230644editdlrm
event_notifications.php194280644editdlrm
event_updates.php93580644editdlrm
firewall.php633850644editdlrm
firewall_options.php172620644editdlrm
firewall_policies.php719870644editdlrm
fw_centlog.php24220644editdlrm
fw_fileguard.php36890644editdlrm
fw_livelog.php56840644editdlrm
help.php485860644editdlrm
i18n-extra.php310210644editdlrm
index.html830644editdlrm
init_update.php75410644editdlrm
install.php123810644editdlrm
install_default.php105260644editdlrm
loader.php5470644editdlrm
login_protection.php231210644editdlrm
logs.php33540644editdlrm
logs_firewall_log.php117970644editdlrm
logs_live_log.php202850644editdlrm
monitoring.php31560644editdlrm
monitoring_file_check.php291850644editdlrm
monitoring_file_guard.php62180644editdlrm
network.php34470644editdlrm
nfw_log.php42250644editdlrm
scheduled_tasks.php55990644editdlrm
security_rules.php28590644editdlrm
security_rules_editor.php73150644editdlrm
security_rules_update.php203090644editdlrm
sign.pub8010644editdlrm
thickbox.php207990644editdlrm
utils.php576700644editdlrm
widget.php48280644editdlrm
wpplus.php175210644editdlrm
Edit: /home/altere25/infinet.finance/wp-content/plugins/ninjafirewall/lib/dashboard_statistics.php (7349B)
', '', $nfw_stat ); } else { $nfw_stat = '0:0:0:0:0:0:0:0:0:0'; goto NO_STATS; } // Look for the corresponding firewall log: $log_file = NFW_LOG_DIR . "/nfwlog/firewall_{$statx}.php"; if ( file_exists( $log_file ) ) { $fh = @fopen( $log_file, 'r', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); // Fetch processing times to output benchmarks: while (! feof( $fh ) ) { $line = fgets( $fh ); if ( preg_match( '/^\[.+?\]\s+\[(.+?)\]/', $line, $match ) ) { if ( $match[1] == 0 ) { continue; } if ( $match[1] > $slow ) { $slow = $match[1]; } if ( $match[1] < $fast ) { $fast = $match[1]; } $speed += $match[1]; ++$tot_bench; } } fclose( $fh ); } NO_STATS: list( $tmp, $medium, $high, $critical ) = explode( ':', $nfw_stat ); $medium = (int) $medium; $high = (int) $high; $critical = (int) $critical; $total = $critical + $high + $medium; $c = $critical; $h = $high; $m = $medium; if ( $total == 1 ) { $fast = $slow; } if (! $total ) { echo '

' . esc_html__('You do not have any stats for the selected month yet.', 'ninjafirewall') . '

'; $fast = 0; } else { $coef = 100 / $total; $critical = round( $critical * $coef, 2 ); $high = round( $high * $coef, 2 ); $medium = round( $medium * $coef, 2 ); // Avoid divide error : if ($tot_bench) { $speed = round( $speed / $tot_bench, 4 ); } else { $fast = 0; } } ?>