Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.testm.php
1 <?php
2
3 function smarty_function_testm($params,&$smarty) {
4
5 if ($params['orderby']=='desc') $orderby="desc";
6
7 //$external_link=$params['external_link'];
8 $external_link='event://';
9 if ($params['listing_amount']=='all')
10 $listing_amount='23232323232323323';
11 else $listing_amount=$params['listing_amount'];
12
13 if (empty($params['offset'])) $offset=0;
14 else $offset=$params['offset'];
15
16 global $db,$node;
17 //if (!$params['parent_id']) {
18 $parent_id=$node['node_id'];
19 //}
20 //else $parent_id=$params['parent_id'];
21
22 $user_id=$_SESSION['user_id'];
23
24 $q="select users.*,nodes.*,node_content.* from nodes left join
25 node_content on (node_content.node_id=nodes.node_id) left
26 join users on users.user_id=nodes.node_creator where external_link like '$external_link%' LIMIT 0,322323232323232323";
27
28 $set=$db->query($q);
29 while ($set->next()) $pole[]=$set->getRecord();
30 $smarty->assign('testm',$pole);
31 }
32 ?>
This page took 0.274522 seconds and 4 git commands to generate.