Files
cyklogaining.tojnar.cz/printcg.php

25 lines
639 B
PHP
Raw Normal View History

2022-01-13 01:31:30 +01:00
<?php
2022-01-13 01:47:26 +01:00
$page = $_GET['page'] ?? 'cyklogaining';
2022-01-13 01:31:30 +01:00
?>
<!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>
2022-01-13 01:47:26 +01:00
<body>
<div class="main">
<?php
2022-01-13 01:36:33 +01:00
$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 {
include './pages/404.php';
}
?>
</div>
</body>
</html>