owls
view index.php @ 18:98983ba58e2e
Added tag owls-2.0 for changeset 081ba8764994
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 23 Jul 2016 21:39:40 +0200 |
parents | 22243e7c7dc5 |
children |
line source
1 <?php
2 error_reporting(E_ALL);
3 include_once 'bbcodeparser.inc.php';
4 ?>
5 <html>
6 <head>
7 <title>Owls - content-rendering system</title>
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9 <link rel="shortcut icon" href="favicon.ico" />
10 <link rel="stylesheet" type="text/css" href="owls.css.php" />
11 </head>
13 <body>
14 <div id="websiteContainer">
15 <a href="/">
16 <img src="owls-banner.png" id="banner" />
17 </a>
19 <?php
20 include 'nav.inc.php';
22 if (!isset($_GET['path'])) {
23 $_GET['path'] = '/';
24 }
25 echo ' <div id="content">'."\n";
26 echo " <h2>". preg_replace('/.*\//', '', $_GET['path']) ."</h2>\n";
27 $file = 'data/'. $_GET['path'].'/text';
28 if (is_file($file)) {
29 $text = file_get_contents($file);
30 } else {
31 $text = 'file not found';
32 }
33 echo ' <p>'.bbcode($text, 1, 1).'</p>';
34 echo ' </div>';
35 echo "\n\n";
36 ?>
38 </div>
40 </body>
41 </html>