Commit | Line | Data |
---|---|---|
e586807d H |
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 | ||
b42b2bf9 | 11 | $smarty->assign('get_node_commanders',$commanders); |
e586807d H |
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']); | |
b42b2bf9 H |
17 | $smarty->assign('execute',$commanders['execute']); |
18 | ||
e586807d H |
19 | } |
20 | ||
21 | ?> | |
b42b2bf9 | 22 |