Commit | Line | Data |
---|---|---|
b42b2bf9 H |
1 | <?php |
2 | function smarty_function_get_node_commanders2($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_commanders2',$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 | ||
23 | ||
24 |