'render_tab1', 'tab2' => 'render_tab2', ); function __construct() { $this->render_menu_page(); } function set_menu_tabs() { $this->menu_tabs = array( 'tab1' => __('Rename Login Page','aiowpsecurity'), //'tab2' => __('TODO','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])); ?>
debug_logger->log_debug("Nonce check failed for rename login page save!",4); die("Nonce check failed for rename login page save!"); } if (empty($_POST['aiowps_login_page_slug']) && isset($_POST["aiowps_enable_rename_login_page"])){ $error .= '
'.__('Please enter a value for your login page slug.','aiowpsecurity'); }else if (!empty($_POST['aiowps_login_page_slug'])){ $aiowps_login_page_slug = sanitize_text_field($_POST['aiowps_login_page_slug']); } if($error){ $this->show_msg_error(__('Attention!','aiowpsecurity').$error); }else{ //Save all the form values to the options $aio_wp_security->configs->set_value('aiowps_enable_rename_login_page',isset($_POST["aiowps_enable_rename_login_page"])?'1':''); $aio_wp_security->configs->set_value('aiowps_login_page_slug',$aiowps_login_page_slug); $aio_wp_security->configs->save_config(); //Recalculate points after the feature status/options have been altered $aiowps_feature_mgr->check_feature_status_and_recalculate_points(); $this->show_msg_settings_updated(); } } ?>
Cookie Based Brute Force Prevention'; $white_list_feature_url = 'Login Page White List'; echo '

'.__('An effective Brute Force prevention technique is to change the default WordPress login page URL.', 'aiowpsecurity').'

'. '

'.__('Normally if you wanted to login to WordPress you would type your site\'s home URL followed by wp-login.php.', 'aiowpsecurity').'

'. '

'.__('This feature allows you to change the login URL by setting your own slug and renaming the last portion of the login URL which contains the wp-login.php to any string that you like.', 'aiowpsecurity').'

'. '

'.__('By doing doing this, malicious bots and hackers will not be able to access your login page because they will not know the correct login page URL.', 'aiowpsecurity').'

'. '
'. '

'.__('You may also be interested in the following alternative brute force prevention features:', 'aiowpsecurity').'

'. '

'.$cookie_based_feature_url.'

'. '

'.$white_list_feature_url.'

'; ?>
configs->get_value('aiowps_enable_rename_login_page')=='1') { ?>

configs->get_value('aiowps_login_page_slug'); ?>

output_feature_details_badge("bf-rename-login-page"); ?>
: configs->get_value('aiowps_enable_rename_login_page')=='1') echo ' checked="checked"'; ?> value="1"/>
: