Subversion Repositories taios

Rev

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

<?php

require '../_taios.php';

$page = new Taios_Page('Wiki', '../');
$page->drawHeader();
$page->drawMiddle();

$page = $_GET['page'];
if (empty($page))
{
    $page = 'Index';
}

$fp = fopen('pages/' . $page . '.txt', 'r');
if ($fp)
{
    write($page->replaceBBCode(fread($fp, filesize('pages/' . $page . '.txt')));
    fclose($fp);
}
else
{
    write('<p>This page is empty.</p>');
}

$page->drawFooter();

?>