OWE/archiv.php

24 lines
501 B
PHP

<html>
<head>
<title>OWE Archiv</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>One Word Each Archiv</h1>
<p><a href="./">Startseite</a></p>
<?php
$filename = $_REQUEST["file"];
if (strcmp(pathinfo($filename)["dirname"], ".") != 0) {
die("nur das echte Archiv ist hier erreichbar");
}
$content = file_get_contents("./data/".$filename) or die("ungültiger Dateiname");
?>
<p class="sentences">
<?php
print($content);
?>
</p>
</body>
</html>