getOptions(); if (isset($_POST['BWPS_htaccess_save'])) { if (!wp_verify_nonce($_POST['wp_nonce'], 'BWPS_htaccess_save')) { die('Security error!'); } $htaccess = trailingslashit(ABSPATH).'.htaccess'; if (!$BWPS->can_write($htaccess)) { if (!$errorHandler) { $errorHandler = new WP_Error(); } $errorHandler->add("2", __("Unable to update htaccess rules", 'better-wp-security')); } else { $opts = $BWPS->saveOptions("htaccess_protectht",$_POST['BWPS_protectht']); $opts = $BWPS->saveOptions("htaccess_protectwpc",$_POST['BWPS_protectwpc']); $opts = $BWPS->saveOptions("htaccess_dirbrowse",$_POST['BWPS_dirbrowse']); $opts = $BWPS->saveOptions("htaccess_hotlink",$_POST['BWPS_hotlink']); $opts = $BWPS->saveOptions("htaccess_request",$_POST['BWPS_request']); $opts = $BWPS->saveOptions("htaccess_qstring",$_POST['BWPS_qstring']); $opts = $BWPS->saveOptions("htaccess_protectreadme",$_POST['BWPS_protectreadme']); $opts = $BWPS->saveOptions("htaccess_protectinstall",$_POST['BWPS_protectinstall']); $BWPS->remove_section($htaccess, 'Better WP Security Protect wp-config'); $BWPS->remove_section($htaccess, 'Better WP Security Prevent Directory Browsing'); $BWPS->remove_section($htaccess, 'Better WP Security Prevent Hotlinking'); $BWPS->remove_section($htaccess, 'Better WP Security Filter Request Methods'); $BWPS->remove_section($htaccess, 'Better WP Security Filter Query String Exploits'); $BWPS->createhtaccess(); } if (isset($errorHandler)) { echo '

' . $errorHandler->get_error_message() . '

'; } else { $BWPS->saveVersions('HTACCESS', BWPS_VERSION_HTACCESS); echo '

' . __('Settings Saved', 'better-wp-security') . '

'; } } ?>

Better WP Security -

/>

/>
readme.html

/>
wp-admin/install.php.

/>

/>

/>

/>

htaccess_showContents(); ?>