]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - index.php3
I got tired of seeing the line about the birthday.
[SourceForge/phpwiki.git] / index.php3
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <!-- $Id: index.php3,v 1.6 2000-06-30 17:51:53 ahollosi Exp $ -->
3 <?
4    /*
5       The main page, i.e. the main loop.
6       This file is always called first.
7    */
8
9    include "wiki_config.php3";
10    include "wiki_stdlib.php3";
11
12    // All requests require the database
13    if ($copy) {
14       // we are editing a copy and want the archive
15       $dbi = OpenDataBase($ArchiveDataBase);
16       include "wiki_editpage.php3";
17       CloseDataBase($dbi);
18       exit();
19    } else {
20       // live database
21       $dbi = OpenDataBase($WikiDataBase);
22    }
23
24
25    if ($edit) {
26       include "wiki_editpage.php3";
27    } elseif ($links) {
28       include "wiki_editlinks.php3";
29    } elseif ($search) {
30       include "wiki_search.php3";
31    } elseif ($full) {
32       include "wiki_fullsearch.php3";
33    } elseif ($post) {
34       include "wiki_savepage.php3";
35    } elseif ($info) {
36       include "wiki_pageinfo.php3";
37    } elseif ($diff) {
38       include "wiki_diff.php3";
39    } else {
40       include "wiki_display.php3"; // defaults to FrontPage
41    }
42
43    CloseDataBase($dbi);
44
45 ?>