Switch to new URI scheme
We still need to canonize section pages (e.g. krk/mcr_2009/mcr_2009.html vs krk/mcr_2009/)
This commit is contained in:
@@ -139,8 +139,8 @@ hs.lang = {
|
||||
<div class="header"><span class="title"><?php include './pages/title_krk.php'; ?></span><br><span class="slogan"><?php include './pages/slogan.php'; ?></span>
|
||||
<?php
|
||||
echo '<span class="floatright">';
|
||||
if (file_exists("pages/$page-de.php") || file_exists("pages/$page/$page-de.php")) {
|
||||
if (file_exists("pages/$page/$page-de.php")) {
|
||||
if (file_exists(__DIR__ . "/pages/$page-de.php") || file_exists(__DIR__ . "/pages/$page/$page-de.php")) {
|
||||
if (file_exists(__DIR__ . "/pages/$page/$page-de.php")) {
|
||||
$lngc = 'de';
|
||||
$icona = "<a href=\"/krk/$lngc/$page/$page.html\"><img src=\"/images/" . $lngc . 'f.png" alt=""></a>';
|
||||
} else {
|
||||
@@ -245,9 +245,9 @@ if ($page !== '') {
|
||||
include "./pages/akce_litvinov/akce_litvinov$jazycek.php";
|
||||
} elseif ($page == 'ski_krusnohori') {
|
||||
include './pages/ski_krusnohori/ski_krusnohori' . $jazycek . '.php';
|
||||
} elseif ($lang === 'cs' && file_exists("pages/$escaped_page.php")) {
|
||||
} elseif ($lang === 'cs' && file_exists(__DIR__ . "/pages/$escaped_page.php")) {
|
||||
include "./pages/$escaped_page.php";
|
||||
} elseif (file_exists("pages/$escaped_page-$lang.php")) {
|
||||
} elseif (file_exists(__DIR__ . "/pages/$escaped_page-$lang.php")) {
|
||||
include "./pages/$escaped_page-$lang.php";
|
||||
} else {
|
||||
include __DIR__ . '/pages/404.php';
|
||||
|
||||
Reference in New Issue
Block a user