'; if (file_exists($_SERVER["DOCUMENT_ROOT"] . '/user/getbodycolors/' . $_GET['userId'])) { die(file_get_contents($_SERVER["DOCUMENT_ROOT"] . '/user/getbodycolors/' . $_GET['userId'])); } else { function load($id){ global $database; global $find; $find = $database->findRow("public_users", ["Id" => $id], ["Id", "CharacterAppearance"]); if ($find && $find->rowCount() > 0){ $find = $find->fetch(PDO::FETCH_OBJ); return true; } else { return false; } } if (load($_GET['userId']) == true and $find->CharacterAppearance !== "" and $find->CharacterAppearance !== null) { $bodyColors = json_decode($find->CharacterAppearance, false)->bodyColors; } else{ load(0); $bodyColors = json_decode($find->CharacterAppearance, false)->bodyColors; } } ?> null nil HeadColor?> LeftArmColor?> LeftLegColor?> Body Colors RightArmColor?> RightLegColor?> TorsoColor?> true