~ubuntu-branches/ubuntu/hoary/moodle/hoary

« back to all changes in this revision

Viewing changes to mod/wiki/ewiki/fragments/nuke_mod_wiki_index

  • Committer: Bazaar Package Importer
  • Author(s): Isaac Clerencia
  • Date: 2004-12-29 00:49:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229004952-gliyqzpj2w3e7clx
Tags: 1.4.3-1
* Urgency high as upstream release fixes several security bugs
* New upstream release
* Write database creation errors and warn the user about it, 
closes: #285842, #285842

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
?>