Removing duplicates
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_id_by_name.php
diff --git a/inc/smarty/node_methodz/function.get_id_by_name.php b/inc/smarty/node_methodz/function.get_id_by_name.php
deleted file mode 100644 (file)
index 7755205..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-function smarty_function_get_id_by_name($params,&$smarty) {
-    $name = mysql_real_escape_string($params['name']);
-    global $db;
-    $q="select user_id from users where login='$name'";
-    $set=$db->query($q);
-    if ($set->getNumRows() > 0) {
-        $set->next();
-        $id=$set->getString('user_id');
-    }
-    else $id = '1';
-    $smarty->assign('get_id_by_name',$id);
-}
-?>
\ No newline at end of file
This page took 0.11523 seconds and 4 git commands to generate.