<?php require_once "../php/main.php"; api_done(array("durations" => get_valid_durations()));
function validate_duration($duration) { if (!in_array($duration, get_valid_durations())) { throw new Exception(); } }