51ff3226 |
1 | <?php |
2 | function smarty_function_get_node_commanders($brawco,&$smarty) { |
f344a9ec |
3 | global $node; |
51ff3226 |
4 | $node_id=$node['node_id']; |
f344a9ec |
5 | |
6 | $commanders=nodes::getNodeCommanders($node_id); |
51ff3226 |
7 | |
45fe16f2 |
8 | $smarty->assign('get_node_commanders',empty($commanders) ? "" : $commanders); |
9 | $smarty->assign('masters',empty($commanders['master']) ? "" : $commanders['master']); |
10 | $smarty->assign('ops',empty($commanders['op']) ? "" : $commanders['op']); |
11 | $smarty->assign('access',empty($commanders['access']) ? "" : $commanders['access']); |
12 | $smarty->assign('bans',empty($commanders['ban']) ? "" : $commanders['ban']); |
13 | $smarty->assign('silence',empty($commanders['silence']) ? "" : $commanders['silence']); |
14 | $smarty->assign('execute',empty($commanders['execute']) ? "" : $commanders['execute']); |
51ff3226 |
15 | |
16 | } |
17 | |
18 | ?> |
19 | |