Nothing to see here

Go Back"; } else { $client_id = intval($license['software_client_id']); enforceClientAccess(); $client_url = "client_id=$client_id&"; $client_name = escapeHtml($license['client_name']); $software_name = escapeHtml($license['software_name']); $software_version = escapeHtml($license['software_version']); $software_type = escapeHtml($license['software_type']); $software_description = escapeHtml($license['software_description']); $software_license_type = escapeHtml($license['software_license_type']); $software_key = $license['software_key']; $software_purchase_reference = escapeHtml($license['software_purchase_reference']); $software_purchase = escapeHtml($license['software_purchase']); $software_purchase_age = assetAge($license['software_purchase']); $software_notes = escapeHtml($license['software_notes']); $software_favorite = intval($license['software_favorite']); $software_created_at = escapeHtml($license['software_created_at']); $software_archived_at = escapeHtml($license['software_archived_at']); $vendor_id = intval($license['vendor_id']); $vendor_name = escapeHtml($license['vendor_name']); $seats = softwareSeats($license['seats_used'], $license['software_seats']); $renewal = softwareRenewal($license['software_expire']); $can_edit = lookupUserPermission('module_support') >= 2 && !$software_archived_at; $license_tags_display = tagPills('license', $software_id, tagsForRecord('license', $software_id), "software.php?client_id=$client_id&", $can_edit); $can_restore = lookupUserPermission('module_support') >= 2; $can_delete = lookupUserPermission('module_support') >= 3 && !empty($config_destructive_deletes_enable); $can_credentials = lookupUserPermission('module_credential') >= 1; $can_link_credentials = $can_edit && lookupUserPermission('module_credential') >= 2; // Override Tab Title // No Sanitizing needed as this var will only be used in the tab title $page_title = $license['software_name']; $holders = softwareSeatHolders($software_id); $keys = softwareKeys($software_id); $keys_free = count(array_filter($keys, function ($key) { return !$key['assets'] && !$key['contacts']; })); $credentials = $can_credentials ? credentialRows("credential_id IN (SELECT credential_id FROM software_credentials WHERE software_id = $software_id)") : []; $documents = linkedRecords('software', $software_id, 'document'); $files = linkedRecords('software', $software_id, 'file'); $history = auditLogHistory('Software', $software_id); $license_tabs = [ 'seats' => ['label' => 'Seats', 'icon' => 'fa-users', 'count' => $seats['used']], 'keys' => ['label' => 'Keys', 'icon' => 'fa-key', 'count' => count($keys) + ($software_key ? 1 : 0)], 'credentials' => ['label' => 'Credentials', 'icon' => 'fa-key', 'count' => count($credentials)], 'documents' => ['label' => 'Documents', 'icon' => 'fa-file-alt', 'count' => count($documents)], 'files' => ['label' => 'Files', 'icon' => 'fa-paperclip', 'count' => count($files)], 'history' => ['label' => 'History', 'icon' => 'fa-history', 'count' => $history['count']], ]; if (!$can_credentials) { unset($license_tabs['credentials']); } // A renewal ticket, filled in with what the person doing it needs $renewal_subject = 'Renew ' . $license['software_name'] . ($renewal ? ' - ' . strtolower($renewal['text']) : ''); // Plain text, one fact a line - the ticket form escapes it $renewal_details = implode("\n", array_filter([ 'Renew ' . trim($license['software_name'] . ' ' . $license['software_version']) . ' for ' . $license['client_name'] . '.', $renewal ? 'Renewal date: ' . $renewal['date'] : '', $seats['state'] !== 'unlimited' ? 'Seats: ' . $seats['used'] . ' in use of ' . $seats['total'] : 'Seats in use: ' . $seats['used'], $license['vendor_name'] ? 'Vendor: ' . $license['vendor_name'] . ($license['vendor_account_number'] ? ' (account ' . $license['vendor_account_number'] . ')' : '') : '', $license['software_purchase_reference'] ? 'Last order: ' . $license['software_purchase_reference'] : '', ])); $renewal_ticket_url = 'modals/ticket/ticket_add.php?' . http_build_query(['client_id' => $client_id, 'subject' => $renewal_subject, 'details' => $renewal_details]); $link_url = "modals/link/link.php?from=software&id=$software_id&to="; $unlink_url = function ($to, $other_id) use ($software_id) { return "post.php?unlink_item&from=software&id=$software_id&to=$to&other=" . intval($other_id) . "&csrf_token=" . $_SESSION['csrf_token']; }; ?>

Archived over seats

License

Seats
Type
Key
individual key None recorded
Renews
No date
Purchased
ago
Order ref
Added

Vendor

true, 'client_id' => $client_id]) ?>
Account
PIN
Phone
Email
Website
Hours
SLA
Contact
Nothing recorded on the vendor yet

Notes