set('Cache.DefinitionImpl', null); // Disable cache by setting a non-existent directory or an invalid one $purifier_config->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 LIMIT 1" ); if (mysqli_num_rows($sql_document) == 0) { echo "

Nothing to see here

Go Back
"; require_once "../includes/footer.php"; exit(); } $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_client_visible = intval($row['document_client_visible']); // Override Tab Title // No Sanitizing needed as this var will opnly be used in the tab title $page_title = $row['document_name']; ?>
Date:
Prepared By:

Documentation Revision History

Version Date Name Description Author
Related Items
Files
Contacts
Assets
Licenses
Vendors
Portal Collaboration
Revisions