Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_node_commanders.php
1 <?php
2 function smarty_function_get_node_commanders($brawco,&$smarty) {
3 global $db,$node;
4 $node_id=$node['node_id'];
5 $set=$db->query("select node_permission,users.login from node_access left join users on node_access.user_id=users.user_id where node_id='$node_id' and node_permission!='' order by node_permission");
6
7 while ($set->next()) {
8 $commanders[$set->getString('node_permission')].=$set->getString('login').";";
9 }
10
11 $smarty->assign('masters',$commanders['master']);
12 $smarty->assign('ops',$commanders['op']);
13 $smarty->assign('access',$commanders['access']);
14 $smarty->assign('bans',$commanders['ban']);
15 $smarty->assign('silence',$commanders['silence']);
16 }
17
18 ?>
This page took 0.243013 seconds and 4 git commands to generate.