HEX
Server: Apache
System: Linux pdx1-shared-a4-02 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: niched (5283231)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/niched/writesideup.net/wp-content/plugins/codevz-plus/admin/fields/backup/backup.php
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
 *
 * Field: Backup
 *
 * @since 1.0.0
 * @version 1.0.0
 *
 */
if( ! class_exists( 'CSF_Field_backup' ) ) {
  class CSF_Field_backup extends CSF_Fields {

    public function __construct( $field, $value = '', $unique = '', $where = '' ) {
      parent::__construct( $field, $value, $unique, $where );
    }

    public function output() {

      $nonce   = wp_create_nonce( 'csf_backup' );
      $options = get_option( $this->unique );
      $export  = esc_url( add_query_arg( array(
        'action'  => 'csf-export-options',
        'export'  => $this->unique,
        'wpnonce' => $nonce
      ), admin_url( 'admin-ajax.php' ) ) );

      if( ! empty( $options['_transient'] ) ) {
        unset( $options['_transient'] );
      }

      echo $this->element_before();

      echo '<textarea name="_nonce" class="csf-import-data"></textarea>';
      echo '<a href="#" class="button button-primary csf-confirm csf-import-js">'. esc_html__( 'Import a Backup', 'codevz' ) .'</a>';
      echo '<small>( '. esc_html__( 'copy-paste your backup string here', 'codevz' ).' )</small>';

      echo '<hr />';
      
      // CODEVZ
      //ob_start();var_export( array_filter( $options ) );
      //echo '<textarea disabled="disabled">'. ob_get_clean() .'</textarea>';
      // CODEVZ

      echo '<textarea name="_nonce" class="csf-export-data" disabled="disabled">'. csf_encode_string( $options ) .'</textarea>';
      echo '<a href="'. $export .'" class="button button-primary" target="_blank">'. esc_html__( 'Export and Download Backup', 'codevz' ) .'</a>';

      echo '<hr />';
      echo '<a href="#" class="button button-primary csf-warning-primary csf-confirm csf-reset-js">'. esc_html__( 'Reset All Options', 'codevz' ) .'</a>';
      echo '<small class="csf-text-warning">'. esc_html__( 'Please be sure for reset all of framework options.', 'codevz' ) .'</small>';

      echo '<div class="csf-data" data-unique="'. $this->unique .'" data-wpnonce="'. $nonce .'"></div>';

      echo $this->element_after();

    }

  }
}