<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     function.url.php
 * Type:     function
 * Name:     link
 * Purpose:  zwraca datę o podanym formacie dla zadanego microtime
 * -------------------------------------------------------------
 */


 function smarty_function_mt2date($params, &$smarty){
	$format = (isset($params['format'])?$params['format']:'d.m.Y G:i:s');
	return (isset($params['time'])?date($format,$params['time']):null);
 }
?>