Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 276 Bytes
<?
if (!defined("POUET_API")) exit();
$user = $_GET["id"] ? PouetUser::Spawn((int)$_GET["id"]) : null;
$result = new stdClass();
if ($user)
{
$result->success = true;
$result->user = $user->ToAPI();
}
else
{
$result->error = true;
}
output($result);
?>