//获取用户所在用户组名称 Monxin专用(PHP代码函数)
//本代码基于Monxin 运行
//代码来源:Monxin ./config/functions.php
function get_user_group_name($pdo,$username){
$sql="select `group` from ".$pdo->index_pre."user where `username`='$username'";
$r=$pdo->query($sql,2)->fetch(2);
$sql="select `name` from ".$pdo->index_pre."group where `id`='".$r['group']."'";
$r=$pdo->query($sql,2)->fetch(2);
return $r['name'];
}
获取用户所在用户组名称 Monxin专用(PHP代码函数)
最新推荐文章于 2022-10-11 22:38:27 发布