if ($action === 'resend') { // Resend verification e-mail. } else { if ($action === 'lost-password') { // Send a password recovery e-mail. } else { if ($action === 'verify-user') { // *** Admin Only *** // // Verify a user. } else { if ($action === 'delete-user') { // *** Admin Only *** // // Remove a user. } else { if ($action === 'purge-cache') { // *** Admin Only *** // // Clear the Login retries cache of a specific user. } else { json_EmitError(); } } } } } } } } } // Done. Output the response. json_Emit($response);
* @apiDescription Retrieve an item */ /** * @api {GET} /v1/games[/:offset] /v1/games * @apiName GetGames * @apiGroup Popular * @apiPermission Everyone * @apiVersion 0.1.0 * * @apiDescription YOU GOT GAME? */ /** * @api {GET} /v1/videos[/:offset] /v1/videos * @apiName GetVideos * @apiGroup Popular * @apiPermission Everyone * @apiVersion 0.1.0 * * @apiDescription MOVIES!? */ /** * @api {GET} /v1/tools[/:offset] /v1/tools * @apiName GetTools * @apiGroup Popular * @apiPermission Everyone * @apiVersion 0.1.0 * * @apiDescription TOOZ!? */ json_Emit($out);
function auth_VerifyEmail($args) { json_Emit(["verify-email" => 0]); }
/** Emit an "Server Error" document and Exit. Use this when the server fails. * * @param String $msg (optional) Message * @returns **NEVER RETURNS** **/ function json_EmitServerError($msg = null) { json_Emit(json_newErrorResponse(500, $msg)); exit; }
function json_End() { global $RESPONSE; // Emit Response // json_Emit($RESPONSE); }