/
home
/
altere25
/
infinet.finance
/
wp-content
/
plugins
/
ninjafirewall
/
lib
/
/home/altere25/infinet.finance/wp-content/plugins/ninjafirewall/lib
mkdir
upload
Name
Size
Mode
Actions
share/
-
0755
rm
.htaccess
378
0644
edit
dl
rm
anti_malware.php
2651
0644
edit
dl
rm
custom_firewall.php
1944
0644
edit
dl
rm
custom_plugin.php
1940
0644
edit
dl
rm
dashboard.php
23688
0644
edit
dl
rm
dashboard_about.php
2727
0644
edit
dl
rm
dashboard_statistics.php
7349
0644
edit
dl
rm
email_sodium.php
7163
0644
edit
dl
rm
events.php
11423
0644
edit
dl
rm
event_notifications.php
19428
0644
edit
dl
rm
event_updates.php
9358
0644
edit
dl
rm
firewall.php
63385
0644
edit
dl
rm
firewall_options.php
17262
0644
edit
dl
rm
firewall_policies.php
71987
0644
edit
dl
rm
fw_centlog.php
2422
0644
edit
dl
rm
fw_fileguard.php
3689
0644
edit
dl
rm
fw_livelog.php
5684
0644
edit
dl
rm
help.php
48586
0644
edit
dl
rm
i18n-extra.php
31021
0644
edit
dl
rm
index.html
83
0644
edit
dl
rm
init_update.php
7541
0644
edit
dl
rm
install.php
12381
0644
edit
dl
rm
install_default.php
10526
0644
edit
dl
rm
loader.php
547
0644
edit
dl
rm
login_protection.php
23121
0644
edit
dl
rm
logs.php
3354
0644
edit
dl
rm
logs_firewall_log.php
11797
0644
edit
dl
rm
logs_live_log.php
20285
0644
edit
dl
rm
monitoring.php
3156
0644
edit
dl
rm
monitoring_file_check.php
29185
0644
edit
dl
rm
monitoring_file_guard.php
6218
0644
edit
dl
rm
network.php
3447
0644
edit
dl
rm
nfw_log.php
4225
0644
edit
dl
rm
scheduled_tasks.php
5599
0644
edit
dl
rm
security_rules.php
2859
0644
edit
dl
rm
security_rules_editor.php
7315
0644
edit
dl
rm
security_rules_update.php
20309
0644
edit
dl
rm
sign.pub
801
0644
edit
dl
rm
thickbox.php
20799
0644
edit
dl
rm
utils.php
57670
0644
edit
dl
rm
widget.php
4828
0644
edit
dl
rm
wpplus.php
17521
0644
edit
dl
rm
Edit:
/home/altere25/infinet.finance/wp-content/plugins/ninjafirewall/lib/widget.php
(4828B)
<?php /* +---------------------------------------------------------------------+ | NinjaFirewall (WP Edition) | | | | (c) NinTechNet - https://nintechnet.com/ | +---------------------------------------------------------------------+ | This program is free software: you can redistribute it and/or | | modify it under the terms of the GNU General Public License as | | published by the Free Software Foundation, either version 3 of | | the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | +---------------------------------------------------------------------+ i18n++ / sa2 */ if (! defined( 'NFW_ENGINE_VERSION' ) ) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); exit; } // Return immediately if user is not allowed (only the admin can see the widget): if (nf_not_allowed( 0, __LINE__ ) ) { return; } wp_add_dashboard_widget( 'nfw_dashboard_welcome', esc_html__('NinjaFirewall Statistics', 'ninjafirewall'), 'nfw_stats_widget' ); global $wp_meta_boxes; if ( is_multisite() ) { $dashboard = 'dashboard-network'; } else { $dashboard = 'dashboard'; } if (! empty( $wp_meta_boxes[$dashboard]['normal']['core'] ) ) { $wpmb = $wp_meta_boxes[$dashboard]['normal']['core']; $nfwidget = ['nfw_dashboard_welcome' => $wpmb['nfw_dashboard_welcome'] ]; $wp_meta_boxes[$dashboard]['normal']['core'] = array_merge( $nfwidget, $wpmb ); } function nfw_stats_widget() { $stat_file = NFW_LOG_DIR . '/nfwlog/stats_' . date( 'Y-m' ) . '.php'; if ( file_exists( $stat_file ) ) { $nfw_stat = file_get_contents( $stat_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); $nfw_stat = str_replace( '<?php exit; ?>', '', $nfw_stat ); } else { $nfw_stat = '0:0:0:0:0:0:0:0:0:0'; } list($tmp, $medium, $high, $critical) = explode(':', $nfw_stat . ':'); $medium = (int) $medium; $high = (int) $high; $critical = (int) $critical; $total = $critical + $high + $medium; if ( $total ) { $coef = 100 / $total; $critical = round( $critical * $coef, 2); $high = round( $high * $coef, 2); $medium = round( $medium * $coef, 2); } echo ' <table border="0" width="100%"> <tr> <th width="50%" align="left"><h3>' . esc_html__('Blocked threats', 'ninjafirewall') .'</h3></th> <td width="50%" align="left">' . number_format_i18n( $total ) . '</td> </tr> <tr> <th width="50%" align="left"><h3>' . esc_html__('Threats level', 'ninjafirewall') .'</h3></th> <td width="50%" align="left"> <i>' . esc_html__('Critical:', 'ninjafirewall') . ' ' . $critical . '%</i> <br /> <table bgcolor="#DFDFDF" border="0" cellpadding="0" cellspacing="0" height="14" width="100%" align="left" style="height:14px;"> <tr> <td width="' . round( $critical) . '%" background="' . plugins_url() . '/ninjafirewall/images/bar-critical.png" style="padding:0px"></td><td width="' . round(100 - $critical) . '%" style="padding:0px"></td> </tr> </table> <br /> <i>' . esc_html__('High:', 'ninjafirewall') . ' ' . $high . '%</i> <br /> <table bgcolor="#DFDFDF" border="0" cellpadding="0" cellspacing="0" height="14" width="100%" align="left" style="height:14px;"> <tr> <td width="' . round( $high) . '%" background="' . plugins_url() . '/ninjafirewall/images/bar-high.png" style="padding:0px"></td><td width="' . round(100 - $high) . '%" style="padding:0px"></td> </tr> </table> <br /> <i>' . esc_html__('Medium:', 'ninjafirewall') . ' ' . $medium . '%</i> <br /> <table bgcolor="#DFDFDF" border="0" cellpadding="0" cellspacing="0" height="14" width="100%" align="left" style="height:14px;"> <tr> <td width="' . round( $medium) . '%" background="' . plugins_url() . '/ninjafirewall/images/bar-medium.png" style="padding:0px;"></td><td width="' . round(100 - $medium) . '%" style="padding:0px;"></td> </tr> </table> </td> </tr> </table> <div align="right" class="activity-block"><a style="text-decoration:none" href="admin.php?page=NinjaFirewall&tab=statistics">' . esc_html__('View statistics', 'ninjafirewall') .'</a> - <a style="text-decoration:none" href="admin.php?page=nfsublog">' . esc_html__('View firewall log', 'ninjafirewall') .'</a></div>'; } // ===================================================================== // EOF
Save
cmd:
run