The SupportIT server www.tojnar.cz is hosted on is being decommissioned. To make the migration faster, we will just copy the current state and convert it to Hakyll incrementally. This mostly imports the tree as is minus accidentally misplaced files. Additionally, the following changes were made: - line separators were converted using dos2unix - file encodings were changed from windows-1250 to utf-8 - highslide and related files are now loaded from root instead of per-gallery copy - uppercase JPG extensions were changed to lowercase remove private
262 lines
9.5 KiB
PHP
262 lines
9.5 KiB
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<link type="image/png" href="/krk/images/logo_krk16.png" rel="shortcut icon">
|
|
<link rel="stylesheet" type="text/css" href="/krk/highslide4/highslide.css">
|
|
<link rel="stylesheet" href="/krk/style.css" type="text/css">
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
<script type="text/javascript" src="/krk/simple.js"></script>
|
|
<script type="text/javascript" src="/krk/highslide4/highslide-with-gallery.js"></script>
|
|
<script type="text/javascript">
|
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
|
</script>
|
|
<script type="text/javascript">
|
|
try {
|
|
var pageTracker = _gat._getTracker("UA-10060558-3");
|
|
pageTracker._trackPageview();
|
|
} catch(err) {}</script>
|
|
<script type="text/javascript">
|
|
hs.graphicsDir = '/krk/highslide4/graphics/';
|
|
hs.align = 'center';
|
|
hs.transitions = ['expand', 'crossfade'];
|
|
hs.outlineType = 'rounded-white';
|
|
hs.wrapperClassName = 'controls-in-heading';
|
|
hs.fadeInOut = true;
|
|
//hs.dimmingOpacity = 0.75;
|
|
|
|
// Add the controlbar
|
|
if (hs.addSlideshow) hs.addSlideshow({
|
|
//slideshowGroup: 'group1',
|
|
interval: 5000,
|
|
repeat: false,
|
|
useControls: true,
|
|
fixedControls: false,
|
|
overlayOptions: {
|
|
opacity: 1,
|
|
position: 'top right',
|
|
hideOnMouseOut: false
|
|
}
|
|
});
|
|
|
|
</script>
|
|
<script type=\"text/javascript\">
|
|
<?php
|
|
if($_REQUEST[lang]=="en"):
|
|
?>
|
|
hs.lang = {
|
|
cssDirection: 'ltr',
|
|
loadingText : 'Loading...',
|
|
loadingTitle : 'Click to cancel',
|
|
focusTitle : 'Click to bring to front',
|
|
fullExpandTitle : 'Expand to actual size (f)',
|
|
fullExpandText : 'Full size',
|
|
creditsText : 'Powered by <i>Highslide JS</i>',
|
|
creditsTitle : 'Go to the Highslide JS homepage',
|
|
previousText : 'Previous',
|
|
previousTitle : 'Previous (arrow left)',
|
|
nextText : 'Next',
|
|
nextTitle : 'Next (arrow right)',
|
|
moveTitle : 'Move',
|
|
moveText : 'Move',
|
|
closeText : 'Close',
|
|
closeTitle : 'Close (esc)',
|
|
resizeTitle : 'Resize',
|
|
playText : 'Play',
|
|
playTitle : 'Play slideshow (spacebar)',
|
|
pauseText : 'Pause',
|
|
pauseTitle : 'Pause slideshow (spacebar)',
|
|
number : 'Image %1 of %2',
|
|
restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
|
|
};
|
|
<?php
|
|
elseif($_REQUEST[lang]=="de"):
|
|
?>
|
|
hs.lang = {
|
|
loadingText : 'Lade...',
|
|
loadingTitle : 'Klick zum Abbrechen',
|
|
focusTitle : 'Klick um nach vorn zu bringen',
|
|
fullExpandTitle : 'Zur Originalgröße erweitern',
|
|
fullExpandText : 'Vollbild',
|
|
creditsText : 'Powered by <i>Highslide JS</i>',
|
|
creditsTitle : 'Gehe zur Highslide JS Homepage',
|
|
previousText : 'Voriges',
|
|
previousTitle : 'Voriges (Pfeiltaste links)',
|
|
nextText : 'Nächstes',
|
|
nextTitle : 'Nächstes (Pfeiltaste rechts)',
|
|
moveTitle : 'Verschieben',
|
|
moveText : 'Verschieben',
|
|
closeText : 'Schließen',
|
|
closeTitle : 'Schließen (Esc)',
|
|
resizeTitle : 'Größe wiederherstellen',
|
|
playText : 'Abspielen',
|
|
playTitle : 'Slideshow abspielen (Leertaste)',
|
|
pauseText : 'Pause',
|
|
pauseTitle : 'Pausiere Slideshow (Leertaste)',
|
|
restoreTitle : 'Klick um das Bild zu schließen, klick und ziehe um zu verschieben. Benutze Pfeiltasten für vor und zurück.'
|
|
};
|
|
<?php
|
|
else:
|
|
?>
|
|
hs.lang = {
|
|
loadingText : 'Načítá se...',
|
|
loadingTitle : 'Klikněte pro zrušení',
|
|
focusTitle : 'Klikněte pro přenesení do popředí',
|
|
fullExpandTitle : 'Zvětšit na původní velikost',
|
|
fullExpandText : 'Plná velikost',
|
|
creditsText : 'Powered by <i>Highslide JS</i>',
|
|
creditsTitle : 'Přejít na stránky Highslide JS',
|
|
previousText : 'Předchozí',
|
|
previousTitle : 'Předchozí (šipka vlevo)',
|
|
nextText : 'Další',
|
|
nextTitle : 'Další (šipka vpravo)',
|
|
moveTitle : 'Přesunout',
|
|
moveText : 'Přesunout',
|
|
closeText : 'Zavřít',
|
|
closeTitle : 'Zavřít (esc)',
|
|
resizeTitle : 'Změnit velikost',
|
|
playText : 'Přehrát',
|
|
playTitle : 'Přehrát slideshow (mezerník)',
|
|
pauseText : 'Pozastavit',
|
|
pauseTitle : 'Pozastavit slideshow (mezerník)',
|
|
restoreTitle : 'Klikněte pro zavření obrázku, klikněte a táhněte pro jeho přesunutí. Použijte šipky na klávesnici pro přesun na další a předchozí.'
|
|
};
|
|
<?php
|
|
endif;
|
|
?>
|
|
</script>
|
|
<title><?php include("./pages/title_krk.php"); ?></title>
|
|
</head>
|
|
<body>
|
|
<div class="content">
|
|
<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/$_REQUEST[page]-de.php") OR file_exists("pages/$_REQUEST[page]/$_REQUEST[page]-de.php")){
|
|
if(file_exists("pages/$_REQUEST[page]/$_REQUEST[page]-de.php")){
|
|
$lngc="de";
|
|
$icona="<a href=\"mainkrk.php?page=$_REQUEST[page]/$_REQUEST[page]&lang=$lngc\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}else{
|
|
$lngc="de";
|
|
$icona="<a href=\"mainkrk.php?page=".htmlspecialchars($_REQUEST["page"])."&lang=$lngc\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}
|
|
|
|
if($_REQUEST[lang]=="de"){
|
|
echo("");
|
|
}else{
|
|
echo($icona);
|
|
}
|
|
}
|
|
if(file_exists("pages/".htmlspecialchars($_REQUEST["page"])."-en.php") OR file_exists("pages/".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"])."-en.php")){
|
|
if(file_exists("pages/".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"])."-en.php")){
|
|
$lngc="en";
|
|
$icona="<a href=\"mainkrk.php?page=".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"])."&lang=$lngc\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}else{
|
|
$lngc="en";
|
|
$icona="<a href=\"mainkrk.php?page=".htmlspecialchars($_REQUEST["page"])."&lang=$lngc\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}
|
|
if($_REQUEST[lang]=="en"){
|
|
echo("");
|
|
}else{
|
|
echo($icona);
|
|
}
|
|
}elseif(!isset($_REQUEST["page"]) AND file_exists("pages/krk_default-en.php")){
|
|
$lngc="en";
|
|
$icona="<a href=\"mainkrk.php?page=krk_default&lang=$lngc\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
if($_REQUEST[lang]=="en"){
|
|
echo("");
|
|
}else{
|
|
echo($icona);
|
|
}
|
|
}
|
|
if(file_exists("pages/".htmlspecialchars($_REQUEST["page"]).".php") OR file_exists("pages/".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"]).".php")){
|
|
if(file_exists("pages/".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"]).".php")){
|
|
$lngc="";
|
|
$icona="<a href=\"mainkrk.php?page=".htmlspecialchars($_REQUEST["page"])."/".htmlspecialchars($_REQUEST["page"]).$lngc."\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}else{
|
|
$lngc="";
|
|
$icona="<a href=\"mainkrk.php?page=".htmlspecialchars($_REQUEST["page"]).$lngc."\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
}
|
|
|
|
if($_REQUEST[lang]=="cs" OR empty($_REQUEST[lang])){
|
|
echo("");
|
|
}else{
|
|
echo($icona);
|
|
}
|
|
}
|
|
if($_REQUEST[lang]=="en" AND empty($_REQUEST["page"])){
|
|
$lngc="";
|
|
$icona="<a href=\"mainkrk.php?page=krk_default\"><img src=\"/images/".$lngc."f.png\" alt=\"\"></a>";
|
|
echo($icona);
|
|
}
|
|
echo("</span>");
|
|
?>
|
|
</div>
|
|
<div class="top-menu">
|
|
<?php
|
|
if(empty($_REQUEST[lang]) OR $_REQUEST[lang]=="cs"){
|
|
include("./pages/krk_topmenu.php");
|
|
}elseif($_REQUEST[lang]=="en" AND file_exists("./pages/krk_topmenu-en.php")){
|
|
include("./pages/krk_topmenu-en.php");
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="sidebar"><div class="sidebar-content">
|
|
<ul>
|
|
<?php
|
|
if(ereg("mcr_2009",htmlspecialchars($_REQUEST["page"])) AND $_REQUEST[lang]=="en"){
|
|
include("./pages/mcr_2009/menumcr_2009-en.php");
|
|
}elseif(ereg("mcr_2009",htmlspecialchars($_REQUEST["page"])) AND $_REQUEST[lang]=="de"){
|
|
include("./pages/mcr_2009/menumcr_2009-de.php");
|
|
}elseif(ereg("mcr_2009",htmlspecialchars($_REQUEST["page"]))){
|
|
include("./pages/mcr_2009/menumcr_2009.php");
|
|
}else{
|
|
if(empty($_REQUEST[lang]) OR $_REQUEST[lang]=="cs"){
|
|
include("./pages/menukrk.php");
|
|
}else{
|
|
include("./pages/menukrk-en.php");
|
|
}
|
|
}
|
|
?>
|
|
</ul><br><br><br>
|
|
</div></div><div class="main"><div class="main-content">
|
|
<?php
|
|
$escaped_page=str_replace(array(")","(","\\","\"","\'",";","{","}","$","[","]","<",">"),"",htmlspecialchars($_REQUEST["page"]));
|
|
if(htmlspecialchars($_REQUEST["page"])){
|
|
if($_GET[lang]){
|
|
$jazycek="-".$_GET[lang];
|
|
}else{
|
|
$jazycek="";
|
|
}
|
|
if(htmlspecialchars($_REQUEST["page"])=="mcr_2009"){
|
|
include("./pages/mcr_2009/mcr_2009$jazycek.php");
|
|
}elseif(htmlspecialchars($_REQUEST["page"])=="clanky"){
|
|
include"./pages/clanky/clanky$jazycek.php";
|
|
}elseif(htmlspecialchars($_REQUEST["page"])=="akce_ob"){
|
|
include"./pages/akce_ob/akce_ob$jazycek.php";
|
|
}elseif(htmlspecialchars($_REQUEST["page"])=="akce_litvinov"){
|
|
include"./pages/akce_litvinov/akce_litvinov$jazycek.php";
|
|
}elseif(htmlspecialchars($_REQUEST["page"])=="ski_krusnohori"){
|
|
include"./pages/ski_krusnohori/ski_krusnohori".$jazycek.".php";
|
|
}elseif(empty($_REQUEST[lang]) AND file_exists("pages/$escaped_page.php")){
|
|
include"./pages/$escaped_page.php";
|
|
}elseif(file_exists("pages/$escaped_page-$_REQUEST[lang].php")){
|
|
include"./pages/$escaped_page-$_REQUEST[lang].php";
|
|
}else{
|
|
include __DIR__ . '/pages/404.php';
|
|
}}else{
|
|
if(empty($_GET["lang"]) OR $_GET["lang"]=="cs"){
|
|
include"./pages/krk_default.php";
|
|
}else{
|
|
include"./pages/krk_default-en.php";
|
|
}
|
|
}
|
|
?>
|
|
</div></div>
|
|
<div class="footer">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|