psql db schema test
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_last.php
diff --git a/inc/smarty/node_methodz/function.get_last.php b/inc/smarty/node_methodz/function.get_last.php
deleted file mode 100644 (file)
index 3ee441e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-       function smarty_function_get_last($params,&$smarty) {
-
-               $vector=addslashes($params['vector']);
-               if (empty($vector)) $vector='0';
-               if ($params['listing_amount']=='all') $listing_amount='-1';
-               else $listing_amount=addslashes($params['listing_amount']);
-               if (empty($params['offset'])) $offset=0;
-               else $offset=addslashes($params['offset']);
-
-               global $db,$node;
-               $node_id=$node['node_id'];
-               $user_id=$_SESSION['user_id'];
-               $q="select parent.node_name as parent_name,users.*,nodes.*,node_content.* from nodes left join nodes as parent on parent.node_id=nodes.node_parent left join node_content on (node_content.node_id=nodes.node_id) left  join users on users.user_id=nodes.node_creator where nodes.node_created>NOW()-INTERVAL 23 HOUR and nodes.node_vector like '%$vector%'  and nodes.node_system_access!='private' order by nodes.node_created desc LIMIT $offset,$listing_amount ";
-               $set=$db->query($q);
-               while ($set->next()) $pole[]=$set->getRecord();
-               $smarty->assign('get_last',$pole);
-
-       }
-?>
\ No newline at end of file
This page took 0.088362 seconds and 4 git commands to generate.