* @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
*
* @contributor Peter R. Bloomfield
*
*/
//
// This script will display Sloodle-related user information about a particular Moodle user.
// Notably, this will include avatar data (i.e. name and UUID).
// In the case of a user viewing their own profile, or an admin viewing anybody's profile,
// there will be the ability to unregister an avatar from the Moodle account, and to
// delete allocated LoginZone positions.
//
//
// This script requires the following paramter:
// id = the ID number of a Moodle user, 'all' for all Sloodle entries, 'search' to search avatars by name/uuid, or 'pending' to list pending (unlinked) avatars
//
// The following parameter should be specified when a Sloodle entry is to be deleted:
// delete = ID number the Sloodle entry to be deleted
// The following parameter should be used when the user confirms or rejects deletion
// confirm = "Yes" (according to a localization table) if confirmed, unspecified if not yet confirmed, or anything else if cancelled.
//
// Optionally, the following parameter can also be specified. It defaults to the site if unspecified:
// course = ID of a Moodle course
//
// In order to search for avatars, the following parameter is required:
// search = a term to search for (avatar name/uuid)