Files
cyklogaining.tojnar.cz/printcg.php

46 lines
1.3 KiB
PHP
Raw Normal View History

2022-01-13 01:31:30 +01:00
<?php
$lang = $_GET["lang"] ?? "cs";
$page = $_GET["page"] ?? "";
?>
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/print.css" type="text/css">
<link type="image/png" href="/images/logo_krk16.png" rel="shortcut icon">
<title>Tisk</title>
</head>
<body><!-- onload="window.print()"-->
<div class="main">
<?php
2022-01-13 01:31:30 +01:00
$escaped_page=str_replace(array(")","(","\\","\"","\'",";","{","}","$","[","]","<",">"),"",$page);
if($page === ""){
if($lang=="cs"){
include"./pages/cyklogaining.php";
}else{
include"./pages/cyklogaining-en.php";
}
}elseif($page=="cestopisy"){
include"./pages/cestopisy/cestopisy.php";
2022-01-13 01:31:30 +01:00
}else if($page=="clanky"){
include"./pages/clanky/clanky.php";
2022-01-13 01:31:30 +01:00
}else if($page=="akce_ob"){
include"./pages/akce_ob/akce_ob.php";
2022-01-13 01:31:30 +01:00
}else if($page=="akce_litvinov"){
include"./pages/akce_litvinov/akce_litvinov.php";
2022-01-13 01:31:30 +01:00
}else if($page=="ski_krusnohori"){
include"./pages/ski_krusnohori/ski_krusnohori.php";
2022-01-13 01:31:30 +01:00
}else if($page=="zakonceni_2008"){
include"./pages/zakonceni_2008/zakonceni_2008.php";
2022-01-13 01:31:30 +01:00
}elseif($lang == "cs" && file_exists("pages/$escaped_page.php")){
include"./pages/$escaped_page.php";
2022-01-13 01:31:30 +01:00
}elseif(file_exists("pages/$escaped_page-" . $lang . ".php")){
include"./pages/$escaped_page-" . $lang . ".php";
}else{
include"./pages/404.php";
}
?>
</div>
</body>
</html>