id = 'server-config-rules'; $this->title = __( 'Server Config Rules', 'better-wp-security' ); $this->description = __( 'If you need to manually add the server config rules generated by iThemes Security to your server, you can find them here.', 'better-wp-security' ); $this->type = 'advanced'; $this->information_only = true; $this->can_save = false; parent::__construct(); } protected function render_description( $form ) { require_once( ITSEC_Core::get_core_dir() . '/lib/class-itsec-lib-config-file.php' ); $config = ITSEC_Lib_Config_File::get_server_config(); if ( empty( $config ) ) { _e( 'There are no rules that need to be written.', 'better-wp-security' ); } else { echo '
' . __( "The following rules need to be written to your server's config file. Please make sure to keep the comments in place." ) . '
'; echo '' . esc_html( $config ) . '
wp-config.php
rules generated by iThemes Security to your server, you can find them here.', 'better-wp-security' );
$this->type = 'advanced';
$this->information_only = true;
$this->can_save = false;
parent::__construct();
}
protected function render_description( $form ) {
require_once( ITSEC_Core::get_core_dir() . '/lib/class-itsec-lib-config-file.php' );
$config = ITSEC_Lib_Config_File::get_wp_config();
if ( empty( $config ) ) {
_e( 'There is nothing that needs to be written to your wp-config.php
file.', 'better-wp-security' );
} else {
echo '' . __( "The following rules need to be written to your wp-config.php
file. Please make sure to keep the comments in place." ) . '
' . esc_html( $config ) . '