Removing duplicates
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_image_link.php
diff --git a/inc/smarty/node_methodz/function.get_image_link.php b/inc/smarty/node_methodz/function.get_image_link.php
deleted file mode 100644 (file)
index 9470a2b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-function smarty_function_get_image_link($params,&$smarty) {
-       global $db;
-       $id = $params['id'];
-       $img = SYSTEM_ROOT."/images/nodes/".substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
-
-       if (file_exists($img)) {
-               echo "/images/nodes/".substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
-       }
-       else {
-               $set = $db->query("select user_id from users where user_id = $id");
-               if ($set->getNumRows() > 0) $imglink = "/images/nodes///.gif";
-               else $imglink = "/images/nodes/1/0/101.gif";
-               echo $imglink;
-       }
-}
-?>
This page took 0.132835 seconds and 4 git commands to generate.