First properly working version.

This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2018-06-02 16:57:00 +02:00
1 parent 8694b0f949
commit 94757eecc3
13 files changed
+210 -62

No files matched your search

+3 -3
View File
@@ -33,14 +33,14 @@ $title = $content->getElementsByTagName("h1")[0]->nodeValue;
// Generate PDF if need be.
if (filemtime(__DIR__ . "/tex/$lang/contentsFrontend.tex") < filemtime(__DIR__ . "/contents/$lang.htm")) {
# if (filemtime(__DIR__ . "/tex/$lang/contentsFrontend.tex") -5000 < filemtime(__DIR__ . "/contents/$lang.htm")) {
foreach ($content->getElementsByTagName("section") as $c) {
DOMtoTeX($c, "tex/$lang");
}
runPDF("tex/$lang", "brochure", "brochure.pdf", $title, $lang, true);
}
# }
// Print HTML page.
@@ -48,6 +48,6 @@ $content = file_get_contents(__DIR__ . "/contents/$lang.htm");
$content = str_replace("\\today", date("Y-m-d", filemtime("contents/$lang.htm")), $content);
echo printHTMLPage("about:" . $title, $content, $lang);
echo printHTMLPage("about:" . $title, $content, $lang, $availableLangs);
?>