Subversion Repositories taios

Rev

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

<?php

require '../_taios.php';

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

$page = new Taios_Page('Wiki - ' . $pageName, '../');
$page->drawHeader();
write('<h3>Wiki</h3>');
$page->drawMenuItem('Special', 'specialpage.php');
$page->drawMiddle();

write('<p><i>The wiki is still under construction.</i></p>');

if ($page->isUserGM($page->getLoggedInUser()))
{
    write('<p><a href="edit.php?page=' . $pageName . '">Edit Page</a></p><br />');
}

$filename = 'pages/' . $pageName . '.txt';

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

$page->drawFooter();

?>