'That link no longer exists.'])); } $client_id = intval($row['item_client_id']); enforceClientAccess(); $types = shareTypes(); $type = $row['item_type']; $type_info = $types[$type] ?? ['label' => $type, 'icon' => 'fa-share-alt']; $state = shareState($row); $is_open = in_array($state, ['active', 'waiting'], true); $can_end = shareCanMake($type); $protection = shareProtection($row); $history = shareHistory($row); // What a client sent back - only for whoever may make credentials, and read through the vault $received = null; if ($state === 'received' && lookupUserPermission('module_credential') >= 2) { $received = shareRequestOpen($row); if (is_array($received)) { logAudit('Share', 'Read', "$session_name looked at the login sent back for " . escapeSql(shareName($row)), $client_id, $item_id); } } $history_icons = [ 'Create' => 'fa-plus-circle', 'Open' => 'fa-eye', 'View' => 'fa-eye', 'Download' => 'fa-download', 'Receive' => 'fa-inbox', 'Code' => 'fa-envelope', 'Verify' => 'fa-check', 'Fail' => 'fa-times-circle text-danger', 'Lock' => 'fa-lock text-danger', 'Destroy' => 'fa-fire', 'Revoke' => 'fa-unlink', 'Save' => 'fa-save', 'Discard' => 'fa-trash', 'Read' => 'fa-key', ]; ob_start(); ?>