'render_tab1', 'tab2' => 'render_tab2', 'tab3' => 'render_tab3', ); function __construct() { $this->render_menu_page(); } function set_menu_tabs() { $this->menu_tabs = array( 'tab1' => __('File Change Detection','all-in-one-wp-security-and-firewall'), 'tab2' => __('Malware Scan','all-in-one-wp-security-and-firewall'), 'tab3' => __('DB Scan','all-in-one-wp-security-and-firewall'), ); } 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 '
'.__('You have entered an incorrect email address format. It has been set to your WordPress admin email as default.','all-in-one-wp-security-and-firewall').'
'; $email_address = get_bloginfo('admin_email'); //Set the default value to the blog admin email } if($error) { $this->show_msg_error(__('Attention!','all-in-one-wp-security-and-firewall').$error); } //Save all the form values to the options $aio_wp_security->configs->set_value('aiowps_enable_automated_fcd_scan',isset($_POST["aiowps_enable_automated_fcd_scan"])?'1':''); $aio_wp_security->configs->set_value('aiowps_fcd_scan_frequency',absint($fcd_scan_frequency)); $aio_wp_security->configs->set_value('aiowps_fcd_scan_interval',$_POST["aiowps_fcd_scan_interval"]); $aio_wp_security->configs->set_value('aiowps_fcd_exclude_filetypes',$file_types); $aio_wp_security->configs->set_value('aiowps_fcd_exclude_files',$files); $aio_wp_security->configs->set_value('aiowps_send_fcd_scan_email',isset($_POST["aiowps_send_fcd_scan_email"])?'1':''); $aio_wp_security->configs->set_value('aiowps_fcd_scan_email_address',$email_address); $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(); //Let's check if backup interval was set to less than 24 hours if (isset($_POST["aiowps_enable_automated_fcd_scan"]) && ($fcd_scan_frequency < 24) && $_POST["aiowps_fcd_scan_interval"]==0) { $alert_user_msg = 'ATTENTION: You have configured your file change detection scan to occur at least once daily. For most websites we recommended that you choose a less frequent schedule such as once every few days, once a week or once a month. Choosing a less frequent schedule will also help reduce your server load.'; $this->show_msg_updated(__($alert_user_msg, 'all-in-one-wp-security-and-firewall')); } if($reset_scan_data) { //Clear old scan row and ask user to perform a fresh scan to reset the data $aiowps_global_meta_tbl_name = AIOWPSEC_TBL_GLOBAL_META_DATA; $where = array('meta_key1' => 'file_change_detection', 'meta_value1' => 'file_scan_data'); $wpdb->delete( $aiowps_global_meta_tbl_name, $where); $result = $aio_wp_security->scan_obj->execute_file_change_detection_scan(); $new_scan_alert = __('NEW SCAN COMPLETED: The plugin has detected that you have made changes to the "File Types To Ignore" or "Files To Ignore" fields. In order to ensure that future scan results are accurate, the old scan data has been refreshed.', 'all-in-one-wp-security-and-firewall'); $this->show_msg_updated($new_scan_alert); } } //Display an alert warning message if a file change was detected if ($aio_wp_security->configs->get_value('aiowps_fcds_change_detected')) { $error_msg = __('All In One WP Security & Firewall has detected that there was a change in your host\'s files.', 'all-in-one-wp-security-and-firewall'); $button = ''; $error_msg .= $button; $this->show_msg_error($error_msg); } ?>'.__('The word Malware stands for Malicious Software. It can consist of things like trojan horses, adware, worms, spyware and any other undesirable code which a hacker will try to inject into your website.', 'all-in-one-wp-security-and-firewall').'
'. ''.__('Often when malware code has been inserted into your site you will normally not notice anything out of the ordinary based on appearances, but it can have a dramatic effect on your site\'s search ranking.', 'all-in-one-wp-security-and-firewall').'
'. ''.__('This is because the bots and spiders from search engines such as Google have the capability to detect malware when they are indexing the pages on your site, and consequently they can blacklist your website which will in turn affect your search rankings.', 'all-in-one-wp-security-and-firewall').'
'; $site_scanners_link = 'CLICK HERE'; echo ''.__('Due to the constantly changing and complex nature of Malware, scanning for such things using a standalone plugin will not work reliably. This is something best done via an external scan of your site regularly.', 'all-in-one-wp-security-and-firewall').'
'. ''.__('This is why we have created an easy-to-use scanning service which is hosted off our own server which will scan your site for malware once every day and notify you if it finds anything.', 'all-in-one-wp-security-and-firewall').'
'; echo ''.__('When you sign up for this service you will get the following:', 'all-in-one-wp-security-and-firewall').'
'; echo ''.sprintf(__('To learn more please %s.', 'all-in-one-wp-security-and-firewall'), $site_scanners_link).'
'; ?>'.__('This feature performs a basic database scan which will look for any common suspicious-looking strings and javascript and html code in some of the Wordpress core tables.', 'all-in-one-wp-security-and-firewall'); echo ''; echo '
This feature can give you false positive result. We have temporarily deactivated this feature to make sure you don\'t lose some data on a false positive. We will re-introduced this feature after we rework it.
'; echo ''.__('This feature will perform a basic database scan which will look for any common suspicious-looking strings and javascript and html code in some of the Wordpress core tables.', 'all-in-one-wp-security-and-firewall').
'
'.__('If the scan finds anything it will list all "potentially" malicious results but it is up to you to verify whether a result is a genuine example of a hacking attack or a false positive.', 'all-in-one-wp-security-and-firewall').
'
'.__('As well as scanning for generic strings commonly used in malicious cases, this feature will also scan for some of the known "pharma" hack entries and if it finds any it will automatically delete them.', 'all-in-one-wp-security-and-firewall').
'
'.__('The WordPress core tables scanned by this feature include: posts, postmeta, comments, links, users, usermeta, and options tables.', 'all-in-one-wp-security-and-firewall').'
'.__('The plugin has detected that there are some potentially suspicious entries in your database.', 'all-in-one-wp-security-and-firewall').'
'; // $error_msg .= ''.__('Please verify the results listed below to confirm whether the entries detected are genuinely suspicious or if they are false positives.', 'all-in-one-wp-security-and-firewall').'
'; // $this->show_msg_error($error_msg); // }else{ // $this->show_msg_updated(__('The basic database scan was completed and no suspicious entries were detected.', 'all-in-one-wp-security-and-firewall')); // } } } /* * Outputs the last scan results in a postbox */ function display_last_scan_results() { $scan_results_unserialized = AIOWPSecurity_Scan::get_file_change_data(); if (!$scan_results_unserialized) { return FALSE; } ?>| '.__('File','all-in-one-wp-security-and-firewall').' | '; $files_added_output .= ''.__('File Size','all-in-one-wp-security-and-firewall').' | '; $files_added_output .= ''.__('File Modified','all-in-one-wp-security-and-firewall').' | '; $files_added_output .= '
|---|---|---|
| '.$key.' | '; $files_added_output .= ''.$value['filesize'].' | '; $files_added_output .= ''.date('Y-m-d H:i:s',$value['last_modified']).' | '; $files_added_output .= '
| '.__('File','all-in-one-wp-security-and-firewall').' | '; $files_removed_output .= ''.__('File Size','all-in-one-wp-security-and-firewall').' | '; $files_removed_output .= ''.__('File Modified','all-in-one-wp-security-and-firewall').' | '; $files_removed_output .= '
|---|---|---|
| '.$key.' | '; $files_removed_output .= ''.$value['filesize'].' | '; $files_removed_output .= ''.date('Y-m-d H:i:s',$value['last_modified']).' | '; $files_removed_output .= '
| '.__('File','all-in-one-wp-security-and-firewall').' | '; $files_changed_output .= ''.__('File Size','all-in-one-wp-security-and-firewall').' | '; $files_changed_output .= ''.__('File Modified','all-in-one-wp-security-and-firewall').' | '; $files_changed_output .= '
|---|---|---|
| '.$key.' | '; $files_changed_output .= ''.$value['filesize'].' | '; $files_changed_output .= ''.date('Y-m-d H:i:s',$value['last_modified']).' | '; $files_changed_output .= '