2018-11-01 14:21:14 +00:00
|
|
|
<?php
|
|
|
|
|
2018-11-01 16:50:10 +00:00
|
|
|
|
2018-11-01 14:21:14 +00:00
|
|
|
echo $OUTPUT->header();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.plagiarism-preview-content {
|
|
|
|
width: 800px;
|
|
|
|
height: 400px;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plagiarism-preview-content-inner {
|
|
|
|
/*white-space: pre;*/
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<br/>
|
|
|
|
<div class="plagiarism-preview-content">
|
|
|
|
<div class="plagiarism-preview-content-inner">
|
2018-11-01 16:50:10 +00:00
|
|
|
<?php
|
|
|
|
echo nl2br(htmlspecialchars($content, ENT_COMPAT | ENT_HTML401, $encoding = 'UTF-8')) ?>
|
2018-11-01 14:21:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div>
|
|
|
|
<?php
|
|
|
|
|
2018-11-01 16:50:10 +00:00
|
|
|
|
2018-11-01 14:21:14 +00:00
|
|
|
if ($isSupported) {
|
|
|
|
echo $form->display();
|
|
|
|
} else {
|
|
|
|
echo 'file not supported';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php
|
2018-11-01 16:50:10 +00:00
|
|
|
|
2018-11-01 14:21:14 +00:00
|
|
|
echo $OUTPUT->footer();
|