} if ($success && isset($_REQUEST['id'])) { $success = createAvatar($_REQUEST['id']); } jecho($success); break; /** * Remove person by ID */ /** * Remove person by ID */ case "remove-person": if (isset($_REQUEST['id'])) { $success = true; $sql = $QUERIES->removePersonById($_REQUEST['id'], $_SESSION["frame_id"], $_SESSION["camera_id"]); $result = mysql_query($sql) or $success = false; jecho($success); } break; /** * Add a group to database * To appear a group must have at least one person associated */ /** * Add a group to database * To appear a group must have at least one person associated */ case "add-group": $success = true; $group = array();