??
This commit is contained in:
parent
9eb7d66cc2
commit
e554b7baf1
@ -33,8 +33,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && sha1($_PO
|
|||||||
|
|
||||||
$skeleton = file_get_contents('templates/skeleton.html');
|
$skeleton = file_get_contents('templates/skeleton.html');
|
||||||
|
|
||||||
$menu_obsah = file_get_contents('templates/404.html');
|
$menu_obsah = file_get_contents('templates/header.html');
|
||||||
$out = str_replace('__TEMPLATE_STRANKA__', $menu_obsah, $skeleton);
|
$out = str_replace('__TEMPLATE_HEADER__', $menu_obsah, $skeleton);
|
||||||
|
|
||||||
$footer_obsah = file_get_contents('templates/footer.html');
|
$footer_obsah = file_get_contents('templates/footer.html');
|
||||||
$out = str_replace('__TEMPLATE_FOOTER__', $footer_obsah, $out);
|
$out = str_replace('__TEMPLATE_FOOTER__', $footer_obsah, $out);
|
||||||
@ -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/404.html";
|
$cesta_k_stranke = "templates/header.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