| 1 | <?php |
| 2 | function smarty_function_get_node_commanders($brawco,&$smarty) { |
| 3 | global $node; |
| 4 | $node_id=$node['node_id']; |
| 5 | |
| 6 | $commanders=nodes::getNodeCommanders($node_id); |
| 7 | |
| 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']); |
| 15 | |
| 16 | } |
| 17 | |
| 18 | ?> |
| 19 | |