'That document no longer exists.']); exit; } $client_id = intval($row['document_client_id']); enforceClientAccess(); $document_form_mode = 'edit'; $document_name = escapeHtml($row['document_name']); $document_description = escapeHtml($row['document_description']); $document_content = escapeHtml($row['document_content']); $document_markdown = $row['document_markdown']; // raw - null for a document in the rich text editor $document_folder_id = intval($row['document_folder_id']); $document_client_visible = intval($row['document_client_visible']); ob_start(); ?>