X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;fp=inc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;h=51c66ecabb6e512e1fe9562a60482b0b75fd4834;hb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;hp=0000000000000000000000000000000000000000;hpb=bc13d5d6e1834068f8b690c32bba114e352dacdd;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/node_methodz/function.get_node_commanders.php b/inc/smarty/node_methodz/function.get_node_commanders.php new file mode 100644 index 0000000..51c66ec --- /dev/null +++ b/inc/smarty/node_methodz/function.get_node_commanders.php @@ -0,0 +1,18 @@ +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"); + + while ($set->next()) { + $commanders[$set->getString('node_permission')].=$set->getString('login').";"; + } + + $smarty->assign('masters',$commanders['master']); + $smarty->assign('ops',$commanders['op']); + $smarty->assign('access',$commanders['access']); + $smarty->assign('bans',$commanders['ban']); + $smarty->assign('silence',$commanders['silence']); +} + +?>