Initial commit
First time in version control, adding as is.
This commit is contained in:
42
printcg.php
Normal file
42
printcg.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<!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
|
||||
$escaped_page=str_replace(array(")","(","\\","\"","\'",";","{","}","$","[","]","<",">"),"",$_REQUEST[page]);
|
||||
if($_REQUEST[page]){
|
||||
if($_REQUEST[page]=="cestopisy"){
|
||||
include"./pages/cestopisy/cestopisy.php";
|
||||
}else if($_REQUEST[page]=="clanky"){
|
||||
include"./pages/clanky/clanky.php";
|
||||
}else if($_REQUEST[page]=="akce_ob"){
|
||||
include"./pages/akce_ob/akce_ob.php";
|
||||
}else if($_REQUEST[page]=="akce_litvinov"){
|
||||
include"./pages/akce_litvinov/akce_litvinov.php";
|
||||
}else if($_REQUEST[page]=="ski_krusnohori"){
|
||||
include"./pages/ski_krusnohori/ski_krusnohori.php";
|
||||
}else if($_REQUEST[page]=="zakonceni_2008"){
|
||||
include"./pages/zakonceni_2008/zakonceni_2008.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"./pages/404.php";
|
||||
}}else{
|
||||
if(empty($_GET["lang"]) OR $_GET["lang"]=="cs"){
|
||||
include"./pages/cyklogaining.php";
|
||||
}else{
|
||||
include"./pages/cyklogaining-en.php";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user