' . htmlspecialchars($zoneContent) . '';
success();
}
if ($_POST['print'] === 'table') { ?>
Domaine |
TTL |
Type |
Contenu |
';
foreach ($elements as $element)
echo ' ' . htmlspecialchars($element) . ' | ';
echo ' ';
}
echo '
';
}
if ($_POST['print'] === 'ds') {
$found = preg_match("#\n" . preg_quote($_POST['zone']) . "\s+0\s+CDS\s+([0-9]{1,5})\s+([0-9]{1,2})\s+([0-9])\s+([0-9A-F]{64})\n#", $zoneContent, $matches);
if ($found !== 1)
serverError("Unable to get public key record from zone file.");
$tag = $matches[1];
$algo = $matches[2];
$digestType = $matches[3];
$digest = $matches[4];
?>
- Zone
-
= $_POST['zone'] ?>
- Tag
-
= $tag ?>
- Algorithme
-
= $algo ?>
- Type de condensat
-
= $digestType ?>
- Condensat
-
= $digest ?>