X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_last.php;h=b5298a9892a383b2d30093874573a9b77dd13f43;hb=1f014b94d50fde9d3fefc5c4b29cf3afe4ab0b05;hp=cc29ea54f105101911e56143f1a12b63ae63f262;hpb=1b6374e50023ef764f9912c959d031d6bd5d41f8;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_last.php b/wwwroot/inc/smarty/node_methodz/function.get_last.php index cc29ea5..b5298a9 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_last.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_last.php @@ -1,36 +1,13 @@ assign('get_last', $last); - if ($node['node_id']==23) { - $interval=" nodes.node_created>NOW()-INTERVAL 65 HOUR and"; - $params['vector']="00"; - } - else { - $vector=$node['node_vector']; - $interval=" nodes.node_created>NOW()-INTERVAL 42 DAY and"; - } - - $node_id=$node['node_id']; - $user_id=$_SESSION['user_id']; - $q="select parent.node_name as parent_name,users.*,nodes.* from nodes - left join nodes as parent on parent.node_id=nodes.node_parent - left join users on users.user_id=nodes.node_creator where $interval - nodes.node_vector like '$vector%' and - nodes.node_system_access!='private' order by nodes.node_id desc LIMIT $offset,$listing_amount "; - - $set=$db->query($q); - while ($set->next()) $pole[]=$set->getRecord(); - $smarty->assign('get_last',$pole); - - } +} ?>