Пример #1
0
function pass_assignprofile($eventData)
{
    global $env, $hui_mainstatus, $amp_locale;
    $result = false;
    if (!empty($eventData['userid'])) {
        $xuser = new XmlRpcUser($env['ampdb'], $eventData['userid']);
        $result = $xuser->AssignProfile($eventData['profileid']);
    }
    if ($result) {
        $hui_mainstatus->mArgs['status'] = $amp_locale->GetStr('chprofileok_status');
    }
}