403Webshell
Server IP : 43.130.17.34  /  Your IP : 216.73.217.6
Web Server : nginx/1.28.0
System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/classes/class-fl-builder-export.php
<?php

/**
 * Custom export handling.
 *
 * @since 1.8
 */
final class FLBuilderExport {

	/** 
	 * @since 1.8
	 * @return void
	 */  
	static public function init()
	{
		add_action( 'admin_enqueue_scripts', 'FLBuilderExport::enqueue_scripts' );
		add_action( 'export_filters', 'FLBuilderExport::filters' );
		add_action( 'wp_ajax_fl_builder_export_templates_data', 'FLBuilderExport::templates_data' );
		add_action( 'export_wp', 'FLBuilderExport::export' );
	}

	/** 
	 * Enqueues the export scripts and styles.
	 *
	 * @since 1.8
	 * @return void
	 */  
	static public function enqueue_scripts()
	{
		global $pagenow;
		
		if ( 'export.php' != $pagenow ) {
			return;
		}
		
		wp_enqueue_style( 'fl-builder-export', FL_BUILDER_URL . 'css/fl-builder-export.css', array(), FL_BUILDER_VERSION );
		wp_enqueue_script( 'fl-builder-export', FL_BUILDER_URL . 'js/fl-builder-export.js', array(), FL_BUILDER_VERSION, true );
	}

	/** 
	 * Renders the export filters markup.
	 *
	 * @since 1.8
	 * @return void
	 */  
	static public function filters()
	{
		include FL_BUILDER_DIR . 'includes/export-filters.php';
	}

	/** 
	 * Called via AJAX and returns the data used for selecting
	 * templates for export.
	 * 
	 * @since 1.8
	 * @return void
	 */  
	static public function templates_data()
	{
		$data  = array();
		$query = new WP_Query( array(
			'post_type' 		=> 'fl-builder-template',
			'orderby' 			=> 'title',
			'order' 			=> 'ASC',
			'posts_per_page' 	=> '-1'
		) );
		
		foreach( $query->posts as $post ) {
			$data[] = array(
				'id'	=> $post->ID,
				'title' => $post->post_title
			);
		}
		
		echo json_encode( $data );
		
		die();
	}

	/** 
	 * Download the export file.
	 *
	 * @since 1.8
	 * @param array $args
	 * @return void
	 */  
	static public function export( $args )
	{
		if ( ! current_user_can( 'export' ) ) {
			return;
		}
		if ( 'fl-builder-template' != $args['content'] ) {
			return;
		}
		if ( ! isset( $_REQUEST['fl-builder-template-export-select'] ) ) {
			return;
		}
		if ( 'all' == $_REQUEST['fl-builder-template-export-select'] ) {
			return;
		}
		if ( ! is_array( $_REQUEST['fl-builder-export-template'] ) ) {
			return;
		}
		
		require_once FL_BUILDER_DIR . 'includes/export.php';
		
		fl_export_wp( $_REQUEST['fl-builder-export-template'] );
		
		die();
	}
}

FLBuilderExport::init();

Youez - 2016 - github.com/yon3zu
LinuXploit