'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 '
' . escapeHtml($value) . '' . '
'; }; $records = function ($text) use ($record) { $lines = domainLines($text); return $lines ? implode('', array_map($record, $lines)) : 'None'; }; ob_start(); ?>