Files
cyklogaining.tojnar.cz/index.php

94 lines
3.1 KiB
PHP
Raw Normal View History

2022-01-13 01:31:30 +01:00
<?php
$page = preg_replace('(\.html$|^' . preg_quote(dirname($_SERVER['SCRIPT_NAME'])). ')', '', $_SERVER['REQUEST_URI'] ?? '');
2022-01-13 01:31:30 +01:00
?>
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<link type="image/png" href="/images/logo_krk16.png" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="highslide4/highslide.css">
<link rel="stylesheet" href="/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="simple.js"></script>
<script type="text/javascript" src="highslide4/highslide-with-gallery.js"></script>
<script type="text/javascript">
hs.graphicsDir = '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>
2022-01-13 01:47:26 +01:00
<script type="text/javascript">
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í.'
};
2022-01-13 01:47:26 +01:00
</script>
2022-01-13 01:36:33 +01:00
<title><?php include './pages/title_cg.php'; ?></title>
</head>
<body>
<div class="content">
2022-01-13 01:36:33 +01:00
<div class="header"><span class="title"><?php include './pages/title_cg.php'; ?></span><br><span class="slogan"><?php include './pages/slogan.php'; ?></span>
</div>
<div class="top-menu">
<?php
2022-01-13 01:47:26 +01:00
include './pages/cg_topmenu.php';
?>
</div>
<div class="sidebar"><div class="sidebar-content">
<ul>
2022-01-13 01:47:26 +01:00
<?php
include './pages/menucg.php';
?>
</ul><br><br><br>
</div></div><div class="main"><div class="main-content">
2022-01-13 01:36:33 +01:00
<?php $escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
2022-01-13 01:47:26 +01:00
if (file_exists("pages/$escaped_page.php")) {
2022-01-13 01:36:33 +01:00
include "./pages/$escaped_page.php";
} else {
2022-01-13 01:47:26 +01:00
include './pages/404.php';
}
?>
</div></div>
<div class="footer">
</div>
</div>
</body>
</html>