25 lines
639 B
PHP
25 lines
639 B
PHP
<?php
|
|
$page = $_GET['page'] ?? 'cyklogaining';
|
|
?>
|
|
<!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>
|
|
<div class="main">
|
|
<?php
|
|
$escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
|
if (file_exists("pages/$escaped_page.php")) {
|
|
include "./pages/$escaped_page.php";
|
|
} else {
|
|
include './pages/404.php';
|
|
}
|
|
?>
|
|
</div>
|
|
</body>
|
|
</html>
|