????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.141.29.234
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/inc/importer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www.astacus.eu/wp-content/plugins/fusion-builder/inc/importer//importer.php
<?php

/**
 * Import Fusion elements/templates
 *
 */
function fusion_builder_importer() {

    if ( isset( $_FILES ) && '' != $_FILES[0] ) {

        $file = $_FILES[0]['tmp_name'];

        if ( current_user_can( 'manage_options' ) ) {

            // we are loading importers
            if ( ! defined( 'WP_LOAD_IMPORTERS' ) ) {
                define( 'WP_LOAD_IMPORTERS', true );
            }

            // if main importer class doesn't exist
            if ( ! class_exists( 'WP_Importer' ) ) {
                $wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php';
                include $wp_importer;
            }

            if ( ! class_exists( 'WP_Import' ) ) {
                $wp_import = FUSION_BUILDER_PLUGIN_DIR . 'inc/importer/wordpress-importer.php';
                include $wp_import;
            }

            // check for main import class and wp import class
            if ( class_exists( 'WP_Importer' ) && class_exists( 'WP_Import' ) ) {

                if ( isset ( $file ) && ! empty ( $file ) ) {

                    $importer = new WP_Import();
                    // Import data
                    $importer->fetch_attachments = true;
                    ob_start();
                    $importer->import( $file );
                    ob_end_clean();

                }

                exit;
            }
        }
    }

    die();
}
add_action( 'wp_ajax_fusion_builder_importer', 'fusion_builder_importer' );


/**
 * Export Fusion elements/templates
 *
 */
function fusion_export_xml() {

    if ( isset( $_GET['page'] ) && 'fusion-builder-options' == $_GET['page'] ) {

        $action = filter_input( INPUT_GET, 'fusion_action', FILTER_SANITIZE_STRING );
        $post_type = filter_input( INPUT_GET, 'fusion_export_type', FILTER_SANITIZE_STRING );

        if ( 'export' == $action ) {

            if ( isset( $post_type ) && ! empty ( $post_type ) ) {

                if ( current_user_can( 'export' ) ) {

                    /** Load WordPress export API */
                    require_once( ABSPATH . 'wp-admin/includes/export.php' );

                    $args = array( 'content' => $post_type );
                    export_wp( $args );
                    exit();
                }
            }
        }
    }
}
add_action( 'admin_init', 'fusion_export_xml' );

Youez - 2016 - github.com/yon3zu
LinuXploit