GIF89A; .
KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Microsoft-IIS/10.0
System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586
User : fatorc ( 0)
PHP Version : 5.3.28
Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate
Directory :  e:/home/fatorc/Web/wp-content/plugins/types/application/models/helper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : e:/home/fatorc/Web/wp-content/plugins/types/application/models/helper/twig.php
<?php

/**
 * Types_Helper_Twig
 *
 * @since 2.0
 */
class Types_Helper_Twig {

	private $filesystem;
	private $twig;

	public function __construct() {
		// backwards compatibility for php5.2
		if ( ! defined( 'E_DEPRECATED' ) )
			define( 'E_DEPRECATED', 8192 );

		if ( ! defined( 'E_USER_DEPRECATED' ) )
			define( 'E_USER_DEPRECATED', 16384 );

		$this->filesystem = new Twig_Loader_Filesystem();
		$this->filesystem->addPath( TYPES_ABSPATH . '/application/views' );
		$this->twig = new Twig_Environment( $this->filesystem );
		$this->twig->addFunction( '__', new Twig_SimpleFunction( '__', array( $this, 'translate' ) ) );
	}

	public function translate( $text, $domain = 'types' ) {
		return __( $text, $domain );
	}
	
	public function render( $file, $data ) {
		if( $this->filesystem->exists( $file ) )
			return $this->twig->render( $file, $data );

		return false;
	}
}

Anon7 - 2021