if ($do->delete($userid)) { dmsg('删除成功', $forward); } else { msg($do->errmsg); } break; case 'move': $userid or msg('请选择会员'); $gid = isset($groupids) ? $groupids : $groupid; if ($gid == 1) { msg('操作失败! 如果需要添加管理员<br/><a href="?file=admin&action=add">请点这里进入管理员管理...</a>'); } if ($GROUP[$gid]['vip']) { msg('操作失败! 如果需要添加' . VIP . '会员<br/><a href="?moduleid=4&file=vip&action=add">请点这里进入' . VIP . '管理...</a>'); } $do->move($userid, $gid); dmsg('移动成功', $forward); break; case 'check': if ($userid) { if (is_array($userid)) { $userids = $userid; } else { $userids[0] = $userid; } foreach ($userids as $userid) { $do->userid = $userid; $member = $do->get_one(); $groupid = $member['regid']; $db->query("UPDATE {$DT_PRE}member SET groupid={$groupid} WHERE userid={$userid}"); $db->query("UPDATE {$DT_PRE}company SET groupid={$groupid} WHERE userid={$userid}");