2 function smarty_function_get_stats($params,&$smarty) {
4 $node_id=$node['node_id'];
6 if (is_numeric($params['user_id'])) {
7 $user_id=$params['user_id'];
9 if (is_numeric($params['listing_amount'])) {
10 $listing_amount=$params['listing_amount'];
12 else $listing_amount=DEFAULT_LISTING_AMOUNT
;
13 if (is_numeric($params['offset'])) {
14 $offset=$params['offset'];
19 $q="select * from node_access left join users on node_access.user_id=users.user_id where node_access.node_id='$node_id' order by last_visit desc limit 232323232323";
21 while ($set->next()) {
22 $array[]=$set->getRecord();
24 $smarty->assign('get_stats',$array);
This page took 0.357684 seconds and 4 git commands to generate.