2018-11-01 14:21:14 +00:00
|
|
|
<?php
|
2019-01-17 16:51:22 +00:00
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
2018-11-01 16:50:10 +00:00
|
|
|
|
2019-01-17 16:51:22 +00:00
|
|
|
if (empty($error)) {
|
2019-01-30 17:39:47 +00:00
|
|
|
$PAGE->requires->js_init_code('window.document.getElementById("plagiarism_pchkorg_report_id").submit();', true);
|
|
|
|
echo $OUTPUT->header();
|
|
|
|
?>
|
|
|
|
<form id="plagiarism_pchkorg_report_id" action="<?php echo htmlspecialchars($action) ?>" method="post">
|
|
|
|
<input type="hidden" name="token" value="<?php echo htmlspecialchars($token) ?>"/>
|
|
|
|
<input type="hidden" name="lms-type" value="moodle"/>
|
|
|
|
<input type="submit" value="Check Report">
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
echo $OUTPUT->header();
|
2018-11-01 16:50:10 +00:00
|
|
|
?>
|
|
|
|
<h2>Error: <?php
|
2019-01-17 16:51:22 +00:00
|
|
|
echo htmlspecialchars($error) ?></h2>
|
2018-11-01 16:50:10 +00:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
echo $OUTPUT->footer();
|