This commit is contained in:
2024-05-29 19:38:18 +02:00
parent e554b7baf1
commit bbe220f942
2 changed files with 12 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && sha1($_PO
$cesta_k_stranke = "stranky/$nazov_stranky.html";
if (!file_exists($cesta_k_stranke)) {
$cesta_k_stranke = "templates/header.html";
$cesta_k_stranke = "templates/header1.html";
}
$stranka_obsah = file_get_contents($cesta_k_stranke);
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);