a64e7b55b564f46e864b84d5c697b3bd19ca391b
[mirrors/Kyberia-bloodline.git] / wwwroot / 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('get_node_commanders',$commanders);
12 $smarty->assign('masters',$commanders['master']);
13 $smarty->assign('ops',$commanders['op']);
14 $smarty->assign('access',$commanders['access']);
15 $smarty->assign('bans',$commanders['ban']);
16 $smarty->assign('silence',$commanders['silence']);
17 $smarty->assign('execute',$commanders['execute']);
18
19 }
20
21 ?>
22
This page took 0.268069 seconds and 3 git commands to generate.