public static function fixAll()
 {
     MainWPSecurity::remove_wp_version();
     MainWPSecurity::remove_rsd();
     MainWPSecurity::remove_wlw();
     //        MainWPSecurity::remove_core_update();
     //        MainWPSecurity::remove_plugin_update();
     //        MainWPSecurity::remove_theme_update();
     MainWPSecurity::remove_php_reporting();
     MainWPSecurity::remove_scripts_version();
     MainWPSecurity::remove_styles_version();
     MainWPSecurity::remove_readme();
     add_filter('style_loader_src', array('MainWPSecurity', 'remove_script_versions'), 999);
     add_filter('style_loader_src', array('MainWPSecurity', 'remove_theme_versions'), 999);
     add_filter('script_loader_src', array('MainWPSecurity', 'remove_script_versions'), 999);
     add_filter('script_loader_src', array('MainWPSecurity', 'remove_theme_versions'), 999);
 }
 function doSecurityFix()
 {
     $sync = false;
     if ($_POST['feature'] == 'all') {
         //fix all
         $sync = true;
     }
     $information = array();
     $security = get_option('mainwp_security');
     if (!is_array($security)) {
         $security = array();
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'listing') {
         MainWPSecurity::prevent_listing();
         $information['listing'] = !MainWPSecurity::prevent_listing_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'wp_version') {
         $security['wp_version'] = true;
         MainWPSecurity::remove_wp_version(true);
         $information['wp_version'] = !MainWPSecurity::remove_wp_version_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'rsd') {
         $security['rsd'] = true;
         MainWPSecurity::remove_rsd(true);
         $information['rsd'] = !MainWPSecurity::remove_rsd_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'wlw') {
         $security['wlw'] = true;
         MainWPSecurity::remove_wlw(true);
         $information['wlw'] = !MainWPSecurity::remove_wlw_ok() ? 'N' : 'Y';
     }
     //        if ($_POST['feature'] == 'all' || $_POST['feature'] == 'core_updates')
     //        {
     //            $security['core_updates'] = true;
     //            MainWPSecurity::remove_core_update(true);
     //            $information['core_updates'] = (!MainWPSecurity::remove_core_update_ok() ? 'N' : 'Y');
     //        }
     //        if ($_POST['feature'] == 'all' || $_POST['feature'] == 'plugin_updates')
     //        {
     //            $security['plugin_updates'] = true;
     //            MainWPSecurity::remove_plugin_update(true);
     //            $information['plugin_updates'] = (!MainWPSecurity::remove_plugin_update_ok() ? 'N' : 'Y');
     //        }
     //        if ($_POST['feature'] == 'all' || $_POST['feature'] == 'theme_updates')
     //        {
     //            $security['theme_updates'] = true;
     //            MainWPSecurity::remove_theme_update(true);
     //            $information['theme_updates'] = (!MainWPSecurity::remove_theme_update_ok() ? 'N' : 'Y');
     //        }
     //        if ($_POST['feature'] == 'all' || $_POST['feature'] == 'file_perms')
     //        {
     //            MainWPSecurity::fix_file_permissions();
     //            $information['file_perms'] = (!MainWPSecurity::fix_file_permissions_ok() ? 'N' : 'Y');
     //            if ($information['file_perms'] == 'N')
     //            {
     //                $information['file_perms'] = 'Could not change all the file permissions';
     //            }
     //        }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'db_reporting') {
         MainWPSecurity::remove_database_reporting();
         $information['db_reporting'] = !MainWPSecurity::remove_database_reporting_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'php_reporting') {
         $security['php_reporting'] = true;
         MainWPSecurity::remove_php_reporting(true);
         $information['php_reporting'] = !MainWPSecurity::remove_php_reporting_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'versions') {
         $security['scripts_version'] = true;
         $security['styles_version'] = true;
         MainWPSecurity::remove_scripts_version(true);
         MainWPSecurity::remove_styles_version(true);
         $information['versions'] = !MainWPSecurity::remove_scripts_version_ok() || !MainWPSecurity::remove_styles_version_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'admin') {
         $information['admin'] = !MainWPSecurity::admin_user_ok() ? 'N' : 'Y';
     }
     if ($_POST['feature'] == 'all' || $_POST['feature'] == 'readme') {
         $security['readme'] = true;
         MainWPSecurity::remove_readme(true);
         $information['readme'] = MainWPSecurity::remove_readme_ok() ? 'Y' : 'N';
     }
     MainWPHelper::update_option('mainwp_security', $security, 'yes');
     if ($sync) {
         $information['sync'] = $this->getSiteStats(array(), false);
     }
     MainWPHelper::write($information);
 }