still cleaning warnings
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_node_commanders.php
CommitLineData
51ff3226 1<?php
2function 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
45fe16f2 11 $smarty->assign('get_node_commanders',empty($commanders) ? "" : $commanders);
12 $smarty->assign('masters',empty($commanders['master']) ? "" : $commanders['master']);
13 $smarty->assign('ops',empty($commanders['op']) ? "" : $commanders['op']);
14 $smarty->assign('access',empty($commanders['access']) ? "" : $commanders['access']);
15 $smarty->assign('bans',empty($commanders['ban']) ? "" : $commanders['ban']);
16 $smarty->assign('silence',empty($commanders['silence']) ? "" : $commanders['silence']);
17 $smarty->assign('execute',empty($commanders['execute']) ? "" : $commanders['execute']);
51ff3226 18
19}
20
21?>
22
This page took 0.258726 seconds and 4 git commands to generate.