2 function smarty_function_get_image_link($params,&$smarty) {
6 if (!is_numeric($id)) { $id=0;}
7 $img = './'.SYSTEM_IMAGES
.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
9 if (file_exists($img)) {
10 echo SYSTEM_IMAGES
.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
13 $set = $db->query("select user_id from users where user_id = $id");
14 if ($set->getNumRows() > 0) {
15 $imglink = SYSTEM_IMAGES
.'/nodes///.gif';
17 $imglink = SYSTEM_IMAGES
.'/nodes/1/0/101.gif';
This page took 0.986187 seconds and 4 git commands to generate.