2023-07-17 19:15:18 +00:00
|
|
|
<?php declare(strict_types=1); ?>
|
2022-08-11 14:38:45 +00:00
|
|
|
<p>
|
2023-01-21 00:27:52 +00:00
|
|
|
<?= _('This service allows to host and manage DNS records inside a DNS zone.') ?>
|
2022-08-11 14:38:45 +00:00
|
|
|
</p>
|
|
|
|
|
2022-09-14 11:30:45 +00:00
|
|
|
<?php displayIndex(); ?>
|
2022-10-09 21:35:24 +00:00
|
|
|
|
2022-11-26 19:10:37 +00:00
|
|
|
|
2023-01-21 00:27:52 +00:00
|
|
|
<h2><?= _('Currently hosted zones') ?></h2>
|
2022-10-09 21:35:24 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2022-11-30 22:12:42 +00:00
|
|
|
$zones = query('select', 'zones', ['username' => $_SESSION['id'] ?? ''], 'zone');
|
2022-10-09 21:35:24 +00:00
|
|
|
if ($zones === [])
|
2023-01-21 00:27:52 +00:00
|
|
|
echo '<p>∅<p>' . LF;
|
2022-10-09 21:35:24 +00:00
|
|
|
else {
|
2022-11-20 14:11:54 +00:00
|
|
|
echo '<ul>' . LF;
|
2022-10-09 21:35:24 +00:00
|
|
|
foreach ($zones as $zone)
|
2022-11-20 14:11:54 +00:00
|
|
|
echo ' <code><li>' . $zone . '</li></code>' . LF;
|
|
|
|
echo '</ul>' . LF;
|
2022-10-09 21:35:24 +00:00
|
|
|
}
|
2023-01-21 00:27:52 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<h2><?= _('Name servers') ?></h2>
|
|
|
|
|
|
|
|
<p><?= _('A zone hosted on this service is served by these name servers:') ?></p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
foreach (CONF['ns']['servers'] as $server)
|
|
|
|
echo ' <li><code>' . $server . '</code></li>';
|
|
|
|
?>
|
|
|
|
</ul>
|