<?
@define(SMARTY_FUNCTION_DIR,dirname(__FILE__));

$smarty_function = array();

foreach(scandir(SMARTY_FUNCTION_DIR) as $files1){ 
if($files1=='.'||$files1=='..'||$files1=='include.php') continue; 
		if(is_dir(SMARTY_FUNCTION_DIR."/".$files1)){
				foreach(scandir(SMARTY_FUNCTION_DIR."/".$files1) as $files2){ 
						if($files2=='.'||$files2=='..'||$files2=='include.php') continue;
							 	include_once(SMARTY_FUNCTION_DIR."/".$files1."/".$files2);
							 	$smarty_function[] = basename(SMARTY_FUNCTION_DIR."/".$files1."/".$files2,".php");
				}
		}else{
			 	include_once(SMARTY_FUNCTION_DIR."/".$files1);
			 	$smarty_function[] = basename(SMARTY_FUNCTION_DIR."/".$files1,".php");
		}
}
?>