X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;fp=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_node_commanders.php;h=a64e7b55b564f46e864b84d5c697b3bd19ca391b;hb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;hp=0000000000000000000000000000000000000000;hpb=dcee763368a1e3f380d07320a5254d91a09304e6;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php b/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php new file mode 100644 index 0000000..a64e7b5 --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/function.get_node_commanders.php @@ -0,0 +1,22 @@ +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('get_node_commanders',$commanders); + $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']); + $smarty->assign('execute',$commanders['execute']); + +} + +?> +