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_template_id'])) { $document_template_id = intval($_GET['document_template_id']); } $sql_document = mysqli_query($mysqli, "SELECT * FROM document_templates WHERE document_template_id = $document_template_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); $document_template_name = nullable_htmlentities($row['document_template_name']); $document_template_description = nullable_htmlentities($row['document_template_description']); $document_template_content = $purifier->purify($row['document_template_content']); $document_template_created_at = nullable_htmlentities($row['document_template_created_at']); $document_template_updated_at = nullable_htmlentities($row['document_template_updated_at']); ?>