--- inc/Smarty.addons.php 2001/02/17 01:09:44 1.1.1.1 +++ inc/Smarty.addons.php 2001/03/03 12:56:17 1.3 @@ -245,47 +245,3 @@ print $html_result; } -//----------------------------------------- -// Custom made by Dobrica Pavlinusic - -function smarty_func_img() { - extract(func_get_arg(0)); - - $f=Array(); - - if (isset($dir)) { - $tdir=dirname($GLOBALS[SCRIPT_FILENAME])."/$dir"; - $h=opendir($dir); - while ($tmp = readdir($h)) { - if (is_file("$tdir/$tmp")) { -// print "$tdir/$tmp
\n"; - $f[]=$tmp; - } - } - closedir($h); -// $f=shuffle($f); - $src="$dir/$f[$nr]"; - } - - $add=""; - if (isset($border)) { - $add.=" border=\"$border\""; - } - if (isset($alt)) { - $add.=" alt=\"$alt\""; - } - if (isset($align)) { - $add.=" align=\"$align\""; - } - if (isset($hspace)) { - $add.=" hspace=\"$hspace\""; - } - if (isset($vspace)) { - $add.=" vspace=\"$vspace\""; - } - - $size = GetImageSize(dirname($GLOBALS[SCRIPT_FILENAME])."/$src"); - print ""; -} - -?>