Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /var/www/html/wp-content/plugins.off/ninjafirewall/lib/ |
Upload File : |
<?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+ / sa / 2 */ if (! defined( 'NFW_ENGINE_VERSION' ) ) { die( 'Forbidden' ); } // Tab and div display if ( empty( $_REQUEST['tab'] ) ) { $_REQUEST['tab'] = 'firewalllog'; } if ( $_REQUEST['tab'] == 'livelog' ) { $firewalllog_tab = ''; $firewalllog_div = ' style="display:none"'; $livelog_tab = ' nav-tab-active'; $livelog_div = ''; } else { $_REQUEST['tab'] = 'firewalllog'; $firewalllog_tab = ' nav-tab-active'; $firewalllog_div = ''; $livelog_tab = ''; $livelog_div = ' style="display:none"'; } ?> <div class="wrap"> <h1><img style="vertical-align:top;width:33px;height:33px;" src="<?php echo plugins_url( '/ninjafirewall/images/ninjafirewall_32.png' ) ?>"> <?php _e('Logs', 'ninjafirewall') ?></h1> <br /> <h2 class="nav-tab-wrapper wp-clearfix" style="cursor:pointer"> <a id="tab-firewalllog" class="nav-tab<?php echo $firewalllog_tab ?>" onClick="nfwjs_switch_tabs('firewalllog', 'firewalllog:livelog')"><?php _e( 'Firewall Log', 'ninjafirewall' ) ?></a> <a id="tab-livelog" class="nav-tab<?php echo $livelog_tab ?>" onClick="nfwjs_switch_tabs('livelog', 'firewalllog:livelog')"><?php _e( 'Live Log', 'ninjafirewall' ) ?></a> <a class="nav-tab"><span class="ninjafirewall-tip" data-tip="<?php esc_attr_e('In the Premium version of NinjaFirewall, you can filter the log by threat severity, type and date. You can delete it, enable its rotation based on the size of the file. It can be exported as a TSV (tab-separated values) text file. You can easily add any IP address to your Access Control whitelist or blacklist and it is possible to redirect all incidents and events to the Syslog server.', 'ninjafirewall' ); echo ' '; esc_attr_e('Also, the Centralized Logging feature lets you remotely access the firewall log of all your NinjaFirewall protected websites from one single installation.', 'ninjafirewall' ) ?>"></span></a> </h2> <br /> <!-- Firewall Log --> <div id="firewalllog-options"<?php echo $firewalllog_div ?>> <?php include __DIR__ .'/logs_firewall_log.php'; ?> </div> <!-- Live Log --> <div id="livelog-options"<?php echo $livelog_div ?>> <?php include __DIR__ .'/logs_live_log.php'; ?> </div> </div> <?php // --------------------------------------------------------------------- // EOF