= 0 AND $_POST['priority'] <= 65535))
output(403, 'Wrong value for priority
.');
if (!($_POST['weight'] >= 0 AND $_POST['weight'] <= 65535))
output(403, 'Wrong value for weight
.');
if (!($_POST['port'] >= 0 AND $_POST['port'] <= 65535))
output(403, 'Wrong value for port
.');
$_POST['target'] = formatAbsoluteDomain($_POST['target']);
knotcZoneExec($_POST['zone'], array(
$values['domain'],
$values['ttl'],
'SRV',
$_POST['priority'],
$_POST['weight'],
$_POST['port'],
$_POST['target']
));
output(200, 'Enregistrement ajouté/retiré.');
}
?>
= linkToDocs('record-srv', 'Documentation du type d\'enregistrement SRV') ?>