Example #1
0
        $userSettings = new goUserSettings();
        $userSettings->setOutputFlag('xml');
        header("Content-Type: text/xml");
        $userSettings->setStatusMessage("Not authorized");
        $userSettings->setStatusCode("403");
        echo $userSettings;
        ob_flush();
        exit;
    }
}
//if
$params = array();
$params['operation'] = $operation;
if (!empty($userID)) {
    $params['userid'] = $userID;
} else {
    if (!empty($userName)) {
        $params['username'] = $userName;
    }
}
$userSettings = new goUserSettings($params);
if (isset($userSettings)) {
    $userSettings->setOutputFlag('xml');
    header("Content-Type: text/xml");
    echo $userSettings;
}
ob_end_flush();
exit;
?>