'That domain no longer exists.']);
exit;
}
$client_id = intval($domain['domain_client_id']);
enforceClientAccess();
// When it was last looked at - kept off the updated date, which the refresher uses
mysqli_query($mysqli, "UPDATE domains SET domain_accessed_at = NOW(), domain_updated_at = domain_updated_at WHERE domain_id = $domain_id");
$domain_name = escapeHtml($domain['domain_name']);
$domain_archived = !empty($domain['domain_archived_at']);
$can_edit = domainCan(2) && !$domain_archived;
$expiry = domainExpiry($domain['domain_expire'], $domain['domain_auto_renew']);
$facts = domainRegistrationFacts($domain['domain_raw_whois']);
$mail_checks = domainMailChecks($domain);
$certificates = domainCertificates($domain);
$services = servicesFor('domain', $domain_id);
$logins = domainLogins($domain);
$history = domainHistory($domain_id, 15);
$tags = tagsForRecord('domain', $domain_id);
$txt_records = array_values(array_filter(array_map('trim', preg_split('/\r?\n/', (string) $domain['domain_txt'])), 'strlen'));
// One record line with its copy button
$record = function ($value) {
$value = trim((string) $value);
return '
= domainExpiryPill($expiry, true) ?>
Auto-renews
Open the website
= $domain['domain_refreshed_at'] ? 'Looked up ' . timeAgo($domain['domain_refreshed_at']) : 'Not looked up yet' ?>
= tagPills('domain', $domain_id, $tags, "domains.php?client_id=$client_id&", false) ?>
Registration
- Expires
- = $expiry ? escapeHtml($expiry['date']) : 'Unknown' ?>
- Auto-renew
- = intval($domain['domain_auto_renew']) ? 'Yes' : 'No' ?>
- Registered
- = escapeHtml($facts['registered']) ?> (= timeAgo($facts['registered']) ?>)
- Registry says
- = escapeHtml($facts['registrar']) ?>
- Status
- = escapeHtml($facts['status']) ?>
Who
= domainVendorsHtml($domain) ?>
No registrar or hosts set= $can_edit ? ' - Edit to add them' : '' ?>.
DNS
- A
- = $records($domain['domain_ip']) ?>
- Name servers
- = $records($domain['domain_name_servers']) ?>
- MX
- = $records($domain['domain_mail_servers']) ?>
Email
= domainMailPillsHtml($mail_checks) ?>
- = escapeHtml($check['text']) ?>
None on this domain yet.
= serviceRowsHtml($services, $can_edit ? function ($row) use ($domain_id) {
return "post.php?unlink_item&from=domain&id=$domain_id&to=service&other=" . intval($row['service_id']) . "&csrf_token=" . $_SESSION['csrf_token'];
} : null) ?>
No service is linked to it.
Logins for the registrar and hosts
= credentialListHtml($logins) ?>
Notes
= nl2br(escapeHtml($domain['domain_notes'])) ?>
TXT records (= count($txt_records) ?>)
= implode('', array_map($record, $txt_records)) ?>
_dmarc
= $record($domain['domain_dmarc']) ?>
WHOIS
= escapeHtml($domain['domain_raw_whois']) ?>
History
-
= escapeHtml($entry['label']) ?>
= $old === '' ? 'set to' : '' . escapeHtml($old) . ' →' ?> = $new === '' ? 'cleared' : escapeHtml($new) ?>
changed
= timeAgo($entry['domain_history_modified_at']) ?>