HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/smilepac/public_html/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( 'Codevz_Field_backup' ) ) {
  class Codevz_Field_backup extends Codevz_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'  => 'codevz-framework-export-options',
        'export'  => $this->unique,
        'wpnonce' => $nonce
      ), admin_url( 'admin-ajax.php' ) ) );

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

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

      echo '<hr />';

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

      echo '<hr />';
      echo '<a href="#" class="button button-primary codevz-warning-primary codevz-confirm codevz-reset-js">'. esc_html__( 'Reset All Options', 'codevz-plus' ) .'</a>';
      echo '<small class="codevz-text-warning">'. esc_html__( 'Please be sure for reset all of framework options, You will lose current theme options and custom sidebars.', 'codevz-plus' ) .'</small>';

      echo '<div class="codevz-data" data-unique="'. esc_attr( $this->unique ) .'" data-wpnonce="'. esc_attr( $nonce ) .'"></div>';

    }

  }
}