Subversion Repositories taios

Rev

Rev 223 | Rev 225 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
169 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Wiki', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
224 tom 9
$pageName = $_GET['page'];
221 tom 10
if (empty($page))
11
{
224 tom 12
    $pageName = 'Index';
221 tom 13
}
169 tom 14
 
224 tom 15
$fp = fopen('pages/' . $pageName . '.txt', 'r');
221 tom 16
if ($fp)
17
{
224 tom 18
    write($page->replaceBBCode(fread($fp, filesize('pages/' . $pageName . '.txt'))));
221 tom 19
    fclose($fp);
20
}
21
else
22
{
23
    write('<p>This page is empty.</p>');
24
}
25
 
169 tom 26
$page->drawFooter();
27
 
28
?>
29