servnest/pg-view/ns/index.php

35 lines
692 B
PHP
Raw Normal View History

2023-07-17 19:15:18 +00:00
<?php declare(strict_types=1); ?>
2022-08-11 14:38:45 +00:00
<p>
<?= _('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-11-26 19:10:37 +00:00
<h2><?= _('Currently hosted zones') ?></h2>
<?php
$zones = query('select', 'zones', ['username' => $_SESSION['id'] ?? ''], 'zone');
if ($zones === [])
echo '<p>∅<p>' . LF;
else {
echo '<ul>' . LF;
foreach ($zones as $zone)
echo ' <code><li>' . $zone . '</li></code>' . LF;
echo '</ul>' . LF;
}
?>
<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>