'render_tab1', 'tab2' => 'render_tab2', 'tab3' => 'render_tab3', 'tab4' => 'render_tab4', 'tab5' => 'render_tab5', ); function __construct() { $this->render_menu_page(); } function set_menu_tabs() { $this->menu_tabs = array( 'tab1' => __('Dashboard', 'all-in-one-wp-security-and-firewall'), 'tab2' => __('System Info', 'all-in-one-wp-security-and-firewall'), 'tab3' => __('Locked IP Addresses', 'all-in-one-wp-security-and-firewall'), 'tab4' => __('Permanent Block List', 'all-in-one-wp-security-and-firewall'), 'tab5' => __('AIOWPS Logs', 'all-in-one-wp-security-and-firewall'), ); } function get_current_tab() { $tab_keys = array_keys($this->menu_tabs); $tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : $tab_keys[0]; return $tab; } /* * Renders our tabs of this menu as nav items */ function render_menu_tabs() { $current_tab = $this->get_current_tab(); echo '
The AIOWPS .htaccess rules were successfully re-inserted.
'; } else if (isset($_SESSION['reapply_htaccess_rules_action_result']) && $_SESSION['reapply_htaccess_rules_action_result'] == '2'){ echo 'AIOWPS encountered an error when trying to write to your .htaccess file. Please check the logs.
' . __('For information, updates and documentation, please visit the', 'all-in-one-wp-security-and-firewall') . ' ' . __('AIO WP Security & Firewall Plugin', 'all-in-one-wp-security-and-firewall') . ' ' . __('Page', 'all-in-one-wp-security-and-firewall') . '
'; echo '' . __('Follow us', 'all-in-one-wp-security-and-firewall') . ' on ' . __('Twitter, Google+ or via Email to stay up to date about the new security features of this plugin.', 'all-in-one-wp-security-and-firewall') . '
'; echo '' . __('No data found!', 'all-in-one-wp-security-and-firewall') . '
'; } else { $login_summary_table = ''; echo '' . __('Last 5 logins summary:', 'all-in-one-wp-security-and-firewall') . '
'; $login_summary_table .= '' . __('User', 'all-in-one-wp-security-and-firewall') . ' | '; $login_summary_table .= '' . __('Date', 'all-in-one-wp-security-and-firewall') . ' | '; $login_summary_table .= '' . __('IP', 'all-in-one-wp-security-and-firewall') . ' | '; $login_summary_table .= '
---|---|---|
' . $entry['user_login'] . ' | '; $login_summary_table .= '' . $entry['login_date'] . ' | '; $login_summary_table .= '' . $entry['login_ip'] . ' | '; $login_summary_table .= '
' . __('Maintenance mode is currently enabled. Remember to turn it off when you are done', 'all-in-one-wp-security-and-firewall') . '
'; } else { echo '' . __('Maintenance mode is currently off.', 'all-in-one-wp-security-and-firewall') . '
'; } echo '' . sprintf(__('The %s feature is currently active.', 'all-in-one-wp-security-and-firewall'), $brute_force_login_feature_link) . '
'; echo '' . __('Your new WordPress login URL is now:', 'all-in-one-wp-security-and-firewall') . '
'; echo '' . AIOWPSEC_WP_URL . '/?' . $brute_force_feature_secret_word . '=1
'; echo '' . sprintf(__('The %s feature is currently active.', 'all-in-one-wp-security-and-firewall'), $rename_login_feature_link) . '
'; echo '' . __('Your new WordPress login URL is now:', 'all-in-one-wp-security-and-firewall') . '
'; echo '' . $home_url . $aio_wp_security->configs->get_value('aiowps_login_page_slug') . '
'; echo 'Please review the changes from the scanner menu
'; } else { echo '' . __('Number of users currently logged in site-wide is:', 'all-in-one-wp-security-and-firewall') . ' ' . $num_users . '
'; $info_msg = '' . sprintf(__('Go to the %s menu to see more details', 'all-in-one-wp-security-and-firewall'), $users_online_link) . '
'; echo $info_msg . '' . __('There are no other site-wide users currently logged in.', 'all-in-one-wp-security-and-firewall') . '
' . __('Number of users currently logged into your site (including you) is:', 'all-in-one-wp-security-and-firewall') . ' ' . $num_users . '
'; $info_msg = '' . sprintf(__('Go to the %s menu to see more details', 'all-in-one-wp-security-and-firewall'), $users_online_link) . '
'; echo $info_msg . '' . __('There are no other users currently logged in.', 'all-in-one-wp-security-and-firewall') . '
' . __('There are no IP addresses currently locked out.', 'all-in-one-wp-security-and-firewall') . '
' . __('Number of temporarily locked out IP addresses: ', 'all-in-one-wp-security-and-firewall') . ' ' . $num_ips . '
'; $info_msg = '' . sprintf(__('Go to the %s menu to see more details', 'all-in-one-wp-security-and-firewall'), $locked_ips_link) . '
'; echo $info_msg . '
db_version();?>
prefix; ?>
' . $plugin_details['Name'] . ' | ' . $plugin_details['Version'] . ' | ' . $plugin_details['PluginURI'] . ' | '; } ?>
' . __('This tab displays the list of all IP addresses which are currently temporarily locked out due to the Login Lockdown feature:', 'all-in-one-wp-security-and-firewall') . '
' . '' . $login_lockdown_feature_url . '
'; ?>' . __('NOTE: This feature does NOT use the .htaccess file to permanently block the IP addresses so it should be compatible with all web servers running WordPress.', 'all-in-one-wp-security-and-firewall') . '
'; ?>