From: niekt0 Date: Fri, 4 Mar 2011 23:37:30 +0000 (+0100) Subject: get_k_neurons added (not working so far) X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=fba1bac4c86998039580413bc2dab4eeadfc15a7;p=mirrors%2FKyberia-bloodline.git get_k_neurons added (not working so far) --- diff --git a/wwwroot/inc/smarty/node_methodz/function.get_k_neurons.php b/wwwroot/inc/smarty/node_methodz/function.get_k_neurons.php new file mode 100644 index 0000000..b43bf95 --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/function.get_k_neurons.php @@ -0,0 +1,34 @@ +now()-interval $interval day + and nodes.node_vector like '$vector%' and nodes.k>0 and nodes.node_system_access!='private' order by nodes.k desc limit $offset,$listing_amount"; + + $set=$db->query($q); + while ($set->next()) { + $k_array[]=$set->getRecord(); + } + + $smarty->assign('get_k',$k_array); + + + + } +?>