is_registered) utils::raise(1, 'Non-existent user.'); if ($_GET['type'] == "skin") { header('Content-Type: image/png'); echo $user->getBinaryTexture('skin'); } else if ($_GET['type'] == "cape") { header('Content-Type: image/png'); echo $user->getBinaryTexture('cape'); } else { header('Content-type: application/json'); echo $user->getJsonProfile(); } } else { utils::raise(1, 'Illegal parameters.'); }