- whole report query URL added as comment

- warning page right before comments added
This commit is contained in:
Wiesner András 2024-10-01 16:25:35 +02:00
parent 79e2430fb6
commit 2e89b7c0d2
2 changed files with 4 additions and 1 deletions

View File

@ -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);
}

View File

@ -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";
}