= 0 AND $_POST['use'] <= 3)) output(403, 'Wrong value for use.'); if (!($_POST['selector'] === "0" OR $_POST['selector'] === "1")) output(403, 'Wrong value for selector.'); if (!($_POST['type'] >= 0 AND $_POST['type'] <= 2)) output(403, 'Wrong value for type.'); if (!(preg_match("/^[a-zA-Z0-9.-]{1,1024}$/", $_POST['content']))) output(403, 'Wrong value for content.'); knotcZoneExec($_POST['zone'], array( $values['domain'], $values['ttl'], "TLSA", $_POST['use'], $_POST['selector'], $_POST['type'], $_POST['content'] )); output(200, 'Enregistrement ajouté'); } ?>