| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?php
- $v_webmail_alias = "webmail";
- if (!empty($_SESSION["WEBMAIL_ALIAS"])) {
- $v_webmail_alias = $_SESSION["WEBMAIL_ALIAS"];
- }
- ?>
- <div class="toolbar">
- <div class="toolbar-inner">
- <div class="toolbar-buttons">
- <a class="button button-secondary button-back js-button-back" href="/list/mail/">
- <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
- </a>
- </div>
- <div class="toolbar-right"></div>
- </div>
- </div>
- <div class="container">
- <h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= tohtml( _("DNS Records")) ?></h1>
- <div class="units-table js-units-container">
- <div class="units-table-header">
- <div class="units-table-cell"><?= tohtml( _("Record")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Type")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("Priority")) ?></div>
- <div class="units-table-cell u-text-center"><?= tohtml( _("TTL")) ?></div>
- <div class="units-table-cell"><?= tohtml( _("IP or Value")) ?></div>
- </div>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="mail.<?= tohtml($_GET["domain"]) ?>">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- A
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 14400
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml(empty($ips[array_key_first($ips)]["NAT"]) ? array_key_first($ips) : $ips[array_key_first($ips)]["NAT"]) ?>">
- </div>
- </div>
- <?php if ($_SESSION["WEBMAIL_SYSTEM"]) { ?>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml($v_webmail_alias) ?>.<?= tohtml($_GET["domain"]) ?>">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- A
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 14400
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml(empty($ips[array_key_first($ips)]["NAT"]) ? array_key_first($ips) : $ips[array_key_first($ips)]["NAT"]) ?>">
- </div>
- </div>
- <?php } ?>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml($_GET["domain"]) ?>">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- MX
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- 10
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 14400
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <input type="text" class="form-control" value="mail.<?= tohtml($_GET["domain"]) ?>.">
- </div>
- </div>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml($_GET["domain"]) ?>">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- TXT
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 14400
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <?php $ip = empty($ips[array_key_first($ips)]["NAT"]) ? array_key_first($ips) : $ips[array_key_first($ips)]["NAT"]; ?>
- <input type="text" class="form-control" value="<?= tohtml("v=spf1 a mx ip4:" . $ip . " -all") ?>">
- </div>
- </div>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="_dmarc">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- TXT
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 14400
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml("v=DMARC1; p=quarantine; pct=100") ?>">
- </div>
- </div>
- <?php foreach ($dkim as $key => $value) { ?>
- <div class="units-table-row js-unit">
- <div class="units-table-cell">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("Record")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml($key) ?>">
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Type")) ?>:</span>
- TXT
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("Priority")) ?>:</span>
- </div>
- <div class="units-table-cell u-text-bold u-text-center-desktop">
- <span class="u-hide-desktop"><?= tohtml( _("TTL")) ?>:</span>
- 3600
- </div>
- <div class="units-table-cell u-text-center-desktop">
- <label class="u-hide-desktop u-text-bold"><?= tohtml( _("IP or Value")) ?>:</label>
- <input type="text" class="form-control" value="<?= tohtml(str_replace(['"', "'"], "", $dkim[$key]["TXT"])) ?>">
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
|