2 // Faster alternative for geting user image link
4 // this is fine for example for viewing "K", much less db requests.
6 function smarty_function_get_image_link_fast($params,&$smarty) {
9 if (!is_numeric($id)) { $id=0;}
10 $img = './'.SYSTEM_IMAGES
.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
12 if (file_exists($img)) { echo "$img"; }
13 else { echo SYSTEM_IMAGES
.'/nodes///.gif'; }
This page took 0.298038 seconds and 4 git commands to generate.