Rev 169 | Rev 222 | 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 | |||
221 | tom | 9 | $page = $_GET['page']; |
10 | if (empty($page)) |
||
11 | { |
||
12 | $page = 'Index'; |
||
13 | } |
||
169 | tom | 14 | |
221 | tom | 15 | $fp = fopen('pages/' . $page . '.txt', 'r'); |
16 | if ($fp) |
||
17 | { |
||
18 | write($page->replaceBBCode(fread($fp, filesize('pages/' . $page . '.txt'));)); |
||
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 |