Exemplo n.º 1
0
 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 '<p>' . __("The following rules need to be written to your server's config file. Please make sure to keep the comments in place.") . '</p>';
         echo '<div class="itsec_server_config_rules"><pre>' . esc_html($config) . '</pre></div>';
     }
 }
Exemplo n.º 2
0
 /**
  * Echos rewrite metabox content.
  *
  * Echos the rewrite rules in the dashboard.
  *
  * @since 4.0.0
  *
  * @return void
  */
 public function rewrite_metabox_contents()
 {
     require_once trailingslashit($GLOBALS['itsec_globals']['plugin_dir']) . 'core/lib/class-itsec-lib-config-file.php';
     $config = ITSEC_Lib_Config_File::get_server_config();
     if (empty($config)) {
         _e('There are no rules to write.', 'better-wp-security');
     } else {
         echo '<div class="itsec_rewrite_rules">' . highlight_string($config, true) . '</div>';
     }
 }
 /**
  * Echos rewrite metabox content.
  *
  * Echos the rewrite rules in the dashboard.
  *
  * @since 4.0.0
  *
  * @return void
  */
 public function rewrite_metabox_contents()
 {
     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 to write.', 'better-wp-security');
     } else {
         echo '<div class="itsec_rewrite_rules">' . highlight_string($config, true) . '</div>';
     }
 }