update
This commit is contained in:
parent
b491e40ef6
commit
62b6de1e54
@ -58,7 +58,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && sha1($_PO
|
|||||||
|
|
||||||
$cesta_k_stranke = "stranky/$nazov_stranky.html";
|
$cesta_k_stranke = "stranky/$nazov_stranky.html";
|
||||||
if (!file_exists($cesta_k_stranke)) {
|
if (!file_exists($cesta_k_stranke)) {
|
||||||
$cesta_k_stranke = "templates/header.html";
|
$cesta_k_stranke = "templates/404.html";
|
||||||
}
|
}
|
||||||
$stranka_obsah = file_get_contents($cesta_k_stranke);
|
$stranka_obsah = file_get_contents($cesta_k_stranke);
|
||||||
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);
|
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);
|
||||||
|
Loading…
Reference in New Issue
Block a user