403Webshell
Server IP : 212.183.175.188  /  Your IP : 216.73.217.18
Web Server : Apache
System : Linux duemilacom6.interac.it 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64
User : cvevolpi ( 10022)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinelPROD/visualComposer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/cvevolpi.it/httpdocs/wp-content/themes/sentinelPROD/visualComposer/textPure.php
<?php

if( !empty($_SERVER['SCRIPT_NAME']) ){
	if( FALSE !== strpos($_SERVER['SCRIPT_NAME'], '/wp-admin/post.php') ){
		if( !empty($_POST) ){
			if( !empty($_POST['content']) ){
				$_POST['content'] = vc_theme_vc_text_pure_hook( stripslashes( $_POST['content'] ) );
			}
		}
	}
}

//edit_form_after_title

add_filter( 'the_content', 'vc_theme_vc_text_pure_hook', 1 );
add_filter( 'edit_form_after_title', 'vc_theme_vc_text_pure_hook_editor', 1 );

function vc_theme_vc_text_pure_hook_editor(){
	global $post;
	$post->post_content = vc_theme_vc_text_pure_hook( $post->post_content );
}

function vc_theme_vc_text_pure_hook( $content ){

	if( FALSE === strpos($content, '[vc_text_pure]') ){
		return $content;
	}

	$content = preg_replace('/\[vc_column_text\]\s*/mU', '[vc_column_text]', $content);
	preg_match_all("/\[vc_text_pure\]([^\[]*)\[\/vc_text_pure\]/mU", $content, $out);

	foreach ($out[0] as $key => $value) {
		$replace = '[vc_raw_html]'
					. base64_encode( rawurlencode( $out[1][$key] ) )
					.'[/vc_raw_html]';
		$content = str_replace($out[0][$key], $replace, $content);
		$content = str_replace('[vc_column_text]'.$out[0][$key].'[/vc_column_text]', $replace, $content);
	}
	return $content;
}

function vc_theme_vc_text_pure($atts, $content = null) {
	$defaults = array (
			'content' => '',
			'el_class' => '',
	);
	$atts = sc_default_params ( $defaults, $atts );

	$text = $content;
	return wpb_js_remove_wpautop ( $text );
}
add_shortcode ( 'vc_text_pure', 'vc_theme_vc_text_pure' );

vc_map ( array (
		"name" => __ ( "Text Pure", "js_composer" ),
		"base" => "vc_text_pure",
		"icon" => "icon-wpb-layer-shape-text",
		"wrapper_class" => "clearfix",
		"category" => __ ( 'Content', 'js_composer' ),
		"params" => array (
				array (
						"type" => "textfield",
						"heading" => __ ( "Content", "js_composer" ),
						"param_name" => "content",
						"description" => __ ( "Component Content", "js_composer" ) 
				),
			
		) 
) );


Youez - 2016 - github.com/yon3zu
LinuXploit