Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_creation_by_type.php
diff --git a/inc/smarty/node_methodz/function.get_creation_by_type.php b/inc/smarty/node_methodz/function.get_creation_by_type.php
deleted file mode 100644 (file)
index dafe057..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-       function smarty_function_get_creation_by_template_id($params,&$smarty) {
-
-
-               $template_id=$params['template_id'];
-               if ($params['listing_amount']=='all') $listing_amount='23232323232323323';
-               else $listing_amount=$params['listing_amount'];
-
-               if (empty($params['offset'])) $offset=0;
-               else $offset=$params['offset'];
-
-               global $db,$node;
-               if (is_numeric($params['creator_id'])) $creator_id=$params['creator_id'];
-               else $creator_id=$node['node_id'];
-               $template_id=$node['template_id'];
-               $user_id=$_SESSION['user_id'];
-
-               $q="select parent.node_name as parent_name,nodes.*,node_content.* from nodes left join node_content on (node_content.node_id=nodes.node_id) left  join nodes as parent on parent.node_id=nodes.node_parent where nodes.node_creator='$creator_id'  and
-nodes.template_id='$template_id' and
-nodes.node_system_access!='private' order by
-nodes.node_created desc LIMIT $offset,$listing_amount";
-//             echo $q;
-               $set=$db->query($q);
-               while ($set->next()) $pole[]=$set->getRecord();
-               $smarty->assign('get_creation_by_template_id',$pole);
-       }
-?>
\ No newline at end of file
This page took 0.144015 seconds and 4 git commands to generate.