diff --git a/class/ReportBuilder.php b/class/ReportBuilder.php index a65218b..41a6d1b 100644 --- a/class/ReportBuilder.php +++ b/class/ReportBuilder.php @@ -213,6 +213,7 @@ class Report // add comments if any if ($this->comments != []) { + $tex .= "\\huge A következő oldal érzékeny információkat tartalmazhat!\n\\clearpage\n\n"; $tex .= "\\clearpage\n\small\n\\noindent "; $tex .= join("\\\\\n", $this->comments); } diff --git a/interface.php b/interface.php index c95b451..1138bd5 100644 --- a/interface.php +++ b/interface.php @@ -578,6 +578,8 @@ function generate_report_by_groups(ReqHandler &$rh, array $params): string $report->addComment("groups: ${groupsJoined}"); $report->addComment("filter: ${filter}"); $report->addComment("best_only: ${params["best_only"]}"); + $requestURL = $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; + $report->addComment("\\scriptsize $requestURL"); // generate latex $report->saveTeX($buildDir); @@ -604,7 +606,7 @@ function generate_report_by_groups(ReqHandler &$rh, array $params): string $zip->addFile($file, basename($file)); } $zip->addFromString("request.txt", "gameid: ${gameid}\ngroups: " . $groupsJoined . "\nfilter: ${filter}\nouttype: ${outtype}\nbest_only: ${params["best_only"]}"); - $zip->addFromString("request.url", $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]); + $zip->addFromString("request.url", $requestURL); $zip->close(); $contentType = "application/zip"; }