Location: PHPKode > projects > LDAPted > ldapted/includes/TPLInterface.php
<?php
/*
 * Created on 19-Oct-06
 *
 */
require_once('includes/smarty/Smarty.class.php');

class TPLInterface extends Smarty
{

	function TPLInterface()
	{
		global $options;
		global $HTTP_SESSION_VARS;

		$this->template_dir = $options['templates'].$HTTP_SESSION_VARS['skin'];
		$this->assign(array("IMAGEDIR"	=> $options['templates'].$options['defskin']."images/"));

	}

	// smart fetch - checks if the custom skin has a template. if not fall-back to
	// default skin
	function sfetch( $tmpl_file )
	{
		return $this->fetch( $tmpl_file );
	}

	function display( $tmpl_file )
	{
		parent::display( $tmpl_file );
	}
}
?>
Return current item: LDAPted