'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 ''; } /* * The menu rendering goes here */ function render_menu_page() { $this->set_menu_tabs(); $tab = $this->get_current_tab(); ?>
render_menu_tabs(); //$tab_keys = array_keys($this->menu_tabs); call_user_func(array(&$this, $this->menu_tabs_handler[$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(); ?>

feature_items; $pt_src_chart_data = ""; $pt_src_chart_data .= "['Feature Name', 'Points'],"; foreach($feature_items as $item) { if($item->feature_status == $feature_mgr->feature_active) { $pt_src_chart_data .= "['".$item->feature_name."', ".$item->item_points."],"; } } ?>

feature_items; $username_admin_feature = $feature_mgr->get_feature_item_by_id("user-accounts-change-admin-user"); echo ''; echo '
'; $login_lockdown_feature = $feature_mgr->get_feature_item_by_id("user-login-login-lockdown"); echo ''; echo '
'; $filesystem_feature = $feature_mgr->get_feature_item_by_id("filesystem-file-permissions"); echo ''; echo '
'; $basic_firewall_feature = $feature_mgr->get_feature_item_by_id("firewall-basic-rules"); echo ''; echo '
'; ?>

get_results("SELECT * FROM $login_activity_table ORDER BY $orderby $order LIMIT 5", ARRAY_A); //Get the last 50 records if ($data == NULL){ echo '

'.__('No data found!','aiowpsecurity').'

'; }else{ $login_summary_table = ''; echo '

'.__('Last 5 logins summary:','aiowpsecurity').'

'; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; foreach ($data as $entry) { $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; $login_summary_table .= ''; } $login_summary_table .= '
'.__('User','aiowpsecurity').''.__('Date','aiowpsecurity').''.__('IP','aiowpsecurity').'
'.$entry['user_login'].''.$entry['login_date'].''.$entry['login_ip'].'
'; echo $login_summary_table; } echo '
'; ?>

configs->get_value('aiowps_site_lockout') == '1'){ echo '

'.__('Maintenance mode is currently enabled. Remember to turn it off when you are done','aiowpsecurity').'

'; } else{ echo '

'.__('Maintenance mode is currently off.','aiowpsecurity').'

'; } echo ''; echo '
'; ?>
configs->get_value('aiowps_enable_brute_force_attack_prevention')=='1'){ ?>

'.__('Cookie-Based Brute Force','aiowpsecurity').''; $brute_force_feature_secret_word = $aio_wp_security->configs->get_value('aiowps_brute_force_secret_word'); echo '
'; 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 '
'; //yellow box div echo '
'; ?>
configs->get_value('aiowps_enable_rename_login_page')=='1'){ ?>

'.__('Rename Login Page','aiowpsecurity').''; echo '
'; 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 '
'; //yellow box div echo '
'; ?>
configs->get_value('aiowps_enable_automated_fcd_scan') == '1'){ echo '
'; echo '
'; echo '

'; echo '
'; if($aio_wp_security->configs->get_value('aiowps_fcds_change_detected')){ echo '
File change detected!
'; echo '

Please review the changes from the scanner menu

'; } else{ echo '
No recent file changes detected.
'; } echo '
'; echo '
';// }//End if statement for automated scan box ?>

Logged In Users'; if (AIOWPSecurity_Utility::is_multisite_install()) { $logged_in_users = get_site_transient('users_online'); $num_users = count($logged_in_users); if($num_users > 1) { 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.'
'; } else { echo '

'.__('There are no other site-wide users currently logged in.','aiowpsecurity').'

'; } } else { $logged_in_users = get_transient('users_online'); if ($logged_in_users === false || $logged_in_users == NULL) { $num_users = 0; } else { $num_users = count($logged_in_users); } if($num_users > 1) { echo '

'.__('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.'
'; } else { echo '

'.__('There are no other users currently logged in.','aiowpsecurity').'

'; } } ?>

Locked IP Addresses'; $locked_ips = AIOWPSecurity_Utility::get_locked_ips(); if($locked_ips === FALSE) { echo '

'.__('There are no IP addresses currently locked out.','aiowpsecurity').'

'; } else { $num_ips = count($locked_ips); echo '

'.__('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.'
'; } ?>

:
:
WPMU:
MySQL : db_version();?>
WP : prefix; ?>
PHP :
:
WP URL:
:
:
CURL :
:

:
:
:
:
:
:
:
:
:
:

'; } ?>
'.$plugin_details['Name'].''.$plugin_details['Version'].''.$plugin_details['PluginURI'].'
delete_lockdown_records(strip_tags($_REQUEST['lockdown_id'])); } if($_REQUEST['action'] == 'unlock_ip'){ //Unlock link was clicked for a row in list table $locked_ip_list->unlock_ip_range(strip_tags($_REQUEST['lockdown_id'])); } } ?>

prepare_items(); //echo "put table of locked entries here"; ?>
'; } ?> display(); ?>