= 0 AND $_POST['lat-deg'] <= 90))
output(403, 'Wrong value for lat-deg
.');
if (!($_POST['lat-min'] >= 0 AND $_POST['lat-min'] <= 59))
output(403, 'Wrong value for lat-min
.');
if (!($_POST['lat-sec'] >= 0 AND $_POST['lat-sec'] <= 59.999))
output(403, 'Wrong value for lat-sec
.');
if ($_POST['lat-dir'] !== 'N' AND $_POST['lat-dir'] !== 'S')
output(403, 'Wrong value for lat-dir
.');
if (!($_POST['lon-deg'] >= 0 AND $_POST['lon-deg'] <= 180))
output(403, 'Wrong value for lon-deg
.');
if (!($_POST['lon-min'] >= 0 AND $_POST['lon-min'] <= 59))
output(403, 'Wrong value for lon-min
.');
if (!($_POST['lon-sec'] >= 0 AND $_POST['lon-sec'] <= 59.999))
output(403, 'Wrong value for lon-sec
.');
if ($_POST['lon-dir'] !== 'E' AND $_POST['lon-dir'] !== 'W')
output(403, 'Wrong value for lon-dir
.');
if (!($_POST['alt'] >= -100000 AND $_POST['alt'] <= 42849672.95))
output(403, 'Wrong value for alt
.');
if (!($_POST['size'] >= 0 AND $_POST['size'] <= 90000000))
output(403, 'Wrong value for size
.');
if (!($_POST['hp'] >= 0 AND $_POST['hp'] <= 90000000))
output(403, 'Wrong value for hp
.');
if (!($_POST['vp'] >= 0 AND $_POST['vp'] <= 90000000))
output(403, 'Wrong value for vp
.');
rateLimit();
knotcZoneExec($_POST['zone'], [
$values['domain'],
$values['ttl'],
'LOC',
$_POST['lat-deg'],
$_POST['lat-min'],
$_POST['lat-sec'],
$_POST['lat-dir'],
$_POST['lon-deg'],
$_POST['lon-min'],
$_POST['lon-sec'],
$_POST['lon-dir'],
$_POST['alt'] . 'm',
$_POST['size'] . 'm',
$_POST['hp'] . 'm',
$_POST['vp'] . 'm',
]);
output(200, _('Modification done.'));