- '.__('You can exclude file types from the scan which would not normally pose any security threat if they were changed. These can include things such as image files.', 'all-in-one-wp-security-and-firewall').'';
echo '
'.__('Example: If you want the scanner to ignore files of type jpg, png, and bmp, then you would enter the following:', 'all-in-one-wp-security-and-firewall').'
- '.__('You can exclude specific files/directories from the scan which would not normally pose any security threat if they were changed. These can include things such as log files.', 'all-in-one-wp-security-and-firewall').'';
echo '
'.__('Example: If you want the scanner to ignore certain files in different directories or whole directories, then you would enter the following:', 'all-in-one-wp-security-and-firewall').'
';
echo '
'.__('cache/config/master.php', 'all-in-one-wp-security-and-firewall').'
';
diff --git a/all-in-one-wp-security/admin/wp-security-filesystem-menu.php b/all-in-one-wp-security/admin/wp-security-filesystem-menu.php
index 845ea89..c2b9909 100644
--- a/all-in-one-wp-security/admin/wp-security-filesystem-menu.php
+++ b/all-in-one-wp-security/admin/wp-security-filesystem-menu.php
@@ -3,24 +3,15 @@
class AIOWPSecurity_Filesystem_Menu extends AIOWPSecurity_Admin_Menu
{
var $menu_page_slug = AIOWPSEC_FILESYSTEM_MENU_SLUG;
-
- /* Specify all the tabs of this menu in the following array */
- var $menu_tabs;
var $menu_tabs_handler = array(
- 'tab1' => 'render_tab1',
+ 'tab1' => 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
'tab4' => 'render_tab4',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- add_action( 'admin_footer', array( &$this, 'filesystem_menu_footer_code' ) );
- }
-
- function set_menu_tabs()
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('File Permissions','all-in-one-wp-security-and-firewall'),
@@ -28,53 +19,13 @@ function set_menu_tabs()
'tab3' => __('WP File Access','all-in-one-wp-security-and-firewall'),
'tab4' => __('Host System 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();
+ add_action( 'admin_footer', array( &$this, 'filesystem_menu_footer_code' ) );
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('Filesystem Security','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
@@ -15,14 +12,9 @@ class AIOWPSecurity_Firewall_Menu extends AIOWPSecurity_Admin_Menu
'tab5' => 'render_tab5',
'tab6' => 'render_tab6',
'tab7' => 'render_tab7',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
-
- function set_menu_tabs()
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Basic Firewall Rules', 'all-in-one-wp-security-and-firewall'),
@@ -33,52 +25,10 @@ function set_menu_tabs()
'tab6' => __('404 Detection', 'all-in-one-wp-security-and-firewall'),
'tab7' => __('Custom Rules', '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;
+ parent::__construct(__('Firewall','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('Firewall','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
+ 'tab1' => 'render_tab1',
+ );
- function set_menu_tabs()
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Visitor Lockout', '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;
+ parent::__construct(__('Maintenance','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('Maintenance','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
+ );
- function set_menu_tabs()
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Copy Protection', 'all-in-one-wp-security-and-firewall'),
'tab2' => __('Frames', 'all-in-one-wp-security-and-firewall'),
'tab3' => __('Users Enumeration', '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;
+ parent::__construct(__('Miscellaneous','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('Miscellaneous','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
+ 'tab1' => 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
'tab4' => 'render_tab4',
'tab5' => 'render_tab5',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
+ );
- function set_menu_tabs()
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('General Settings', 'all-in-one-wp-security-and-firewall'),
@@ -29,52 +21,10 @@ function set_menu_tabs()
'tab4' => __('WP Version Info', 'all-in-one-wp-security-and-firewall'),
'tab5' => __('Import/Export', '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;
+ parent::__construct(__('Settings','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('Settings','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
-
- function set_menu_tabs()
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Comment SPAM', 'all-in-one-wp-security-and-firewall'),
'tab2' => __('Comment SPAM IP Monitoring', 'all-in-one-wp-security-and-firewall'),
'tab3' => __('BuddyPress', '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;
+ parent::__construct(__('SPAM Prevention','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('SPAM Prevention','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
+ 'tab1' => 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
- );
- function __construct()
- {
- $this->render_menu_page();
-
- //Add the JS library for password tool - make sure we are on our password tab
- if (isset($_GET['page']) && strpos($_GET['page'], AIOWPSEC_USER_ACCOUNTS_MENU_SLUG ) !== false) {
- if (isset($_GET['tab']) && $_GET['tab'] == 'tab3'){
- wp_enqueue_script('aiowpsec-pw-tool-js');
- }
- }
- }
-
- function set_menu_tabs()
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('WP Username', 'all-in-one-wp-security-and-firewall'),
'tab2' => __('Display Name', 'all-in-one-wp-security-and-firewall'),
'tab3' => __('Password', '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();
+ parent::__construct(__('User Accounts','all-in-one-wp-security-and-firewall'));
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
+ //Add the JS library for password tool - make sure we are on our password tab
+ if (isset($_GET['page']) && strpos($_GET['page'], AIOWPSEC_USER_ACCOUNTS_MENU_SLUG ) !== false) {
+ if (isset($_GET['tab']) && $_GET['tab'] == 'tab3'){
+ wp_enqueue_script('aiowpsec-pw-tool-js');
+ }
}
- echo '
';
}
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('User Accounts','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
+ 'tab1' => 'render_tab1',
'tab2' => 'render_tab2',
'tab3' => 'render_tab3',
'tab4' => 'render_tab4',
'tab5' => 'render_tab5',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
-
- function set_menu_tabs()
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Login Lockdown', 'all-in-one-wp-security-and-firewall'),
@@ -28,53 +21,11 @@ function set_menu_tabs()
'tab4' => __('Account Activity Logs', 'all-in-one-wp-security-and-firewall'),
'tab5' => __('Logged In Users', '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;
+ parent::__construct(__('User Login','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('User Login','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
'tab2' => 'render_tab2',
);
-
- function __construct()
- {
- $this->render_menu_page();
- }
-
- function set_menu_tabs()
+
+ function __construct()
{
$this->menu_tabs = array(
'tab1' => __('Manual Approval', 'all-in-one-wp-security-and-firewall'),
'tab2' => __('Registration Captcha', '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;
+ parent::__construct(__('User Registration','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('User Registration','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
- 'render_tab1',
- );
-
- function __construct()
- {
- $this->render_menu_page();
- }
-
- function set_menu_tabs()
+ 'tab1' => 'render_tab1',
+ );
+
+ function __construct()
{
$this->menu_tabs = array(
- 'tab1' => __('WhoIS Lookup', 'all-in-one-wp-security-and-firewall'),
+ 'tab1' => __('WHOIS Lookup', '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;
+ parent::__construct(__('WHOIS Lookup','all-in-one-wp-security-and-firewall'));
}
- /*
- * Renders our tabs of this menu as nav items
- */
- function render_menu_tabs()
- {
- $current_tab = $this->get_current_tab();
-
- echo '
';
- foreach ( $this->menu_tabs as $tab_key => $tab_caption )
- {
- $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
- echo '' . $tab_caption . '';
- }
- echo '
';
- }
-
- /*
- * The menu rendering goes here
- */
- function render_menu_page()
- {
- echo '
';
- echo '
'.__('WHOIS Lookup','all-in-one-wp-security-and-firewall').'
';//Interface title
- $this->set_menu_tabs();
- $tab = $this->get_current_tab();
- $this->render_menu_tabs();
- ?>
-
- menu_tabs);
- call_user_func(array(&$this, $this->menu_tabs_handler[$tab]));
- ?>
-
-
-