56ffa2439766bedd4b8c4280c49b9863fd90d8f9
[atutor.git] / mods / wiki / fragments / parent-cms / nuke_mod_wiki_index
1 <?php
2
3 /*
4
5     This is a PHPNuke5.2 module (don't know if it works with v6) to be
6     copied into the modules directory like the filename implies
7     ( phpnuke/modules/Wiki/ ).
8
9     You should copy the "ewiki.php" into the same directory!
10
11     If you want it to initialize the db correctly you must copy the
12     init-pages/ to there as well.
13
14 */
15
16
17 #-- stupid legacy code
18 if (!eregi("modules.php", $PHP_SELF)) {
19     die ("You can't access this file directly...");
20 }
21
22 #-- blocks to the left and to the right?
23 $index = 0;
24
25 #-- HTML,HEAD,TABLESTART
26 include("header.php");       #-- or better "mainfile.php" ???
27
28
29 #-- Output -----------------------------------------------------------
30 OpenTable();    # do we want to know, what this is for?
31
32
33
34
35 chdir("modules/Wiki/");
36
37 error_reporting(0);
38 define("EWIKI_SCRIPT", "modules.php?op=modload&name=Wiki&file=index&wikipage=");
39
40 include("ewiki.php");
41 ($wikipage = $_REQUEST["wikipage"]) or
42 ($wikipage = $_REQUEST["page"]) or
43 ($wikipage = EWIKI_PAGE_INDEX);
44 echo ewiki_page($wikipage);
45
46 chdir("../..");
47
48
49
50
51 CloseTable();   # strange function names ;)
52
53
54 # /BODY
55 include("footer.php");
56
57
58 ?>