php warning removed
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.gnodes.php
CommitLineData
51ff3226 1function smarty_function_get_nodes_by_external_link($params,&$smarty) {
2
3if ($params['orderby']=='desc') $orderby="desc"; else $orderby="asc";
4echo 'xxxxxxxxxxxxxxxx';
5$external_link=$params['external_link'];
6if ($params['listing_amount']=='all')
7$listing_amount='23232323232323323';
8else $listing_amount=$params['listing_amount'];
9
10if (empty($params['offset'])) $offset=0;
11else $offset=$params['offset'];
12
13global $db,$node;
14
15$q="select users.*,nodes.*,node_content.* from nodes left join
16node_content on (node_content.node_id=nodes.node_id) left
17join users on users.user_id=nodes.node_creator where external_link like '$external_link%' order by node_created $orderby LIMIT $offset,$listing_amount";
18
19$set=$db->query($q);
20while ($set->next()) $pole[]=$set->getRecord();
21$smarty->assign('get_nodes_by_external_link',$pole);
22}
23?>
This page took 0.196538 seconds and 4 git commands to generate.