1 <!-- $Id: wiki_display.php3,v 1.5 2000-06-18 15:12:13 ahollosi Exp $ -->
4 display.php3: render a page. This has all the display
5 logic in it, except for the search boxes.
8 // if we got GET data, the first item is always a page name
9 // if it wasn't this file would not have been included
12 $pagename = rawurldecode($argv[0]);
14 $pagename = "FrontPage";
16 // if there is no FrontPage, create a basic set of Wiki pages
17 if (! IsWikiPage($dbi, $pagename)) {
18 include "wiki_setupwiki.php3";
23 $enc_name = rawurlencode($pagename);
24 $pagehash = RetrievePage($dbi, $pagename);
26 if (is_array($pagehash)) {
27 // we render the page if it's a hash, else ask the user to write one.
28 // This file returns a variable $html containing all the HTML markup
29 include("wiki_transform.php3");
31 $html .= "Describe $pagename<a href='$ScriptUrl?edit=$enc_name'>?</a> here.\n";
34 GeneratePage('BROWSE', $html, $pagename, $pagehash);