set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]); $purifier = new HTMLPurifier($purifier_config); if (isset($_GET['document_id'])) { $document_id = intval($_GET['document_id']); } $folder_location = 0; $sql_document = mysqli_query($mysqli, "SELECT * FROM documents LEFT JOIN folders ON document_folder_id = folder_id LEFT JOIN users ON document_created_by = user_id WHERE document_client_id = $client_id AND document_id = $document_id" ); $row = mysqli_fetch_array($sql_document); $folder_name = nullable_htmlentities($row['folder_name']); $document_name = nullable_htmlentities($row['document_name']); $document_description = nullable_htmlentities($row['document_description']); $document_content = $purifier->purify($row['document_content']); $document_created_by_id = intval($row['document_created_by']); $document_created_by_name = nullable_htmlentities($row['user_name']); $document_created_at = nullable_htmlentities($row['document_created_at']); $document_updated_at = nullable_htmlentities($row['document_updated_at']); $document_archived_at = nullable_htmlentities($row['document_archived_at']); $document_folder_id = intval($row['document_folder_id']); $document_parent = intval($row['document_parent']); $document_client_visible = intval($row['document_client_visible']); ?>
| Revision | Date | Description | Author |
|---|---|---|---|