- whole report query URL added as comment
- warning page right before comments added
This commit is contained in:
parent
79e2430fb6
commit
2e89b7c0d2
@ -213,6 +213,7 @@ class Report
|
|||||||
|
|
||||||
// add comments if any
|
// add comments if any
|
||||||
if ($this->comments != []) {
|
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 .= "\\clearpage\n\small\n\\noindent ";
|
||||||
$tex .= join("\\\\\n", $this->comments);
|
$tex .= join("\\\\\n", $this->comments);
|
||||||
}
|
}
|
||||||
|
@ -578,6 +578,8 @@ function generate_report_by_groups(ReqHandler &$rh, array $params): string
|
|||||||
$report->addComment("groups: ${groupsJoined}");
|
$report->addComment("groups: ${groupsJoined}");
|
||||||
$report->addComment("filter: ${filter}");
|
$report->addComment("filter: ${filter}");
|
||||||
$report->addComment("best_only: ${params["best_only"]}");
|
$report->addComment("best_only: ${params["best_only"]}");
|
||||||
|
$requestURL = $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"];
|
||||||
|
$report->addComment("\\scriptsize $requestURL");
|
||||||
|
|
||||||
// generate latex
|
// generate latex
|
||||||
$report->saveTeX($buildDir);
|
$report->saveTeX($buildDir);
|
||||||
@ -604,7 +606,7 @@ function generate_report_by_groups(ReqHandler &$rh, array $params): string
|
|||||||
$zip->addFile($file, basename($file));
|
$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.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();
|
$zip->close();
|
||||||
$contentType = "application/zip";
|
$contentType = "application/zip";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user