X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_nodes_by_parent.php;fp=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_nodes_by_parent.php;h=0000000000000000000000000000000000000000;hb=f9b322cc7cb38f9d23168c291ebc3e49040a4999;hp=360f553c51e7320acedab78dc5ed74837836665d;hpb=673e23209e2e3b9782c037e70156a1a20154a5b9;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/function.get_nodes_by_parent.php b/inc/smarty/node_methodz/function.get_nodes_by_parent.php deleted file mode 100644 index 360f553..0000000 --- a/inc/smarty/node_methodz/function.get_nodes_by_parent.php +++ /dev/null @@ -1,56 +0,0 @@ - '".addslashes($params['time'])."' and "; - $q="select parent.node_name as parent_name,users.*,nodes.*,node_access.node_user_subchild_count from nodes left join nodes as parent on parent.node_id=nodes.node_parent left join node_access on node_access.node_id=nodes.node_id and node_access.user_id='$user_id' left join users on users.user_id=nodes.node_creator where "; - $q.=" $sql_time nodes.node_parent='$parent' and nodes.node_system_access!='private'"; - - - if ($_POST['template_event']=='filter_by') { - if ($_POST['search_type']=='content') - $sql_type.=" and node_content like '%".addslashes($_POST['node_content'])."%' "; - else { - $q2="select user_id from users where login='".$_POST['node_content']."'"; - $userset=$db->query($q2); - $userset->next(); - $id=$userset->getString('user_id'); - $sql_type=" and nodes.node_creator='$id'"; - } - $q.=$sql_type; - } - - if ($orderby) $q.=" order by $orderby "; - else $q.=" order by nodes.node_id desc "; - $q.= " LIMIT $offset,$listing_amount "; - $set=$db->query($q); - while ($set->next()) $pole[]=$set->getRecord(); - $smarty->assign('get_nodes_by_parent',$pole); - - } -?> - - - -