'render_tab1', 'tab2' => 'render_tab2', 'tab3' => 'render_tab3', ); function __construct() { $this->render_menu_page(); } function set_menu_tabs() { $this->menu_tabs = array( 'tab1' => __('Dashboard','aiowpsecurity'), 'tab2' => __('System Info','aiowpsecurity'), 'tab3' => __('Locked IP Addresses','aiowpsecurity'), ); } function get_current_tab() { $tab_keys = array_keys($this->menu_tabs); $tab = isset( $_GET['tab'] ) ? $_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 '
'.__('For information, updates and documentation, please visit the','aiowpsecurity').' '.__('AIO WP Security & Firewall Plugin','aiowpsecurity').' '.__('Page','aiowpsecurity').'
'; echo ''.__('Follow us','aiowpsecurity').' on '.__('Twitter, Google+ or via Email to stay up to date about the new security features of this plugin.','aiowpsecurity').'
'; echo ''; echo "";//Include the google chart library global $aiowps_feature_mgr; global $aio_wp_security; $feature_mgr = $aiowps_feature_mgr; $total_site_security_points = $feature_mgr->get_total_site_points(); $total_security_points_achievable = $feature_mgr->get_total_achievable_points(); ?>'.__('No data found!','aiowpsecurity').'
'; }else{ $login_summary_table = ''; echo ''.__('Last 5 logins summary:','aiowpsecurity').'
'; $login_summary_table .= '| '.__('User','aiowpsecurity').' | '; $login_summary_table .= ''.__('Date','aiowpsecurity').' | '; $login_summary_table .= ''.__('IP','aiowpsecurity').' | '; $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','aiowpsecurity').'
'; } else{ echo ''.__('Maintenance mode is currently off.','aiowpsecurity').'
'; } echo ''.sprintf( __('The %s feature is currently active.', 'aiowpsecurity'), $brute_force_login_feature_link).'
'; echo ''.__('Your new WordPress login URL is now:','aiowpsecurity').'
'; echo ''.AIOWPSEC_WP_URL.'/?'.$brute_force_feature_secret_word.'=1
'; echo ''.sprintf( __('The %s feature is currently active.', 'aiowpsecurity'), $rename_login_feature_link).'
'; echo ''.__('Your new WordPress login URL is now:','aiowpsecurity').'
'; 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:','aiowpsecurity').' '.$num_users.'
'; $info_msg = ''.sprintf( __('Go to the %s menu to see more details', 'aiowpsecurity'), $users_online_link).'
'; echo $info_msg.''.__('There are no other site-wide users currently logged in.','aiowpsecurity').'
'.__('Number of users currently logged into your site (including you) is:','aiowpsecurity').' '.$num_users.'
'; $info_msg = ''.sprintf( __('Go to the %s menu to see more details', 'aiowpsecurity'), $users_online_link).'
'; echo $info_msg.''.__('There are no other users currently logged in.','aiowpsecurity').'
'.__('There are no IP addresses currently locked out.','aiowpsecurity').'
'.__('Number of temporarily locked out IP addresses: ','aiowpsecurity').' '.$num_ips.'
'; $info_msg = ''.sprintf( __('Go to the %s menu to see more details', 'aiowpsecurity'), $locked_ips_link).'
'; echo $info_msg.'db_version();?>prefix; ?>
| '.$plugin_details['Name'].' | '.$plugin_details['Version'].' | '.$plugin_details['PluginURI'].' | '; } ?>