Table of Contents

Scripts and Sources

These are GNU GPL licenced so please download the source and make your own modifications/additions. If you make use of any of the source or scripts I would be very interested to know.

DokuWiki Mods

CustomPHP

This is a very simple and general PHP include handler that is far more secure than simply allowing PHP code within wiki pages. Instead a wiki tag initiates specific included PHP code to execute. This should be as secure as the PHP Regex functions, but nonetheless, use at your own risk.

Two examples (the reasons that I made the mod) are sparklines and including a namespace parallel singapore image gallery.

The patch includes ‘customphp.php’ handler and parser.php mod for custom PHP includes using the ‘::customphptag::’ syntax.

  1. untar the patch file
  2. apply the CustomPHP patch created using:
patch -p1 --verbose -d dokuwiki_directory < dokuwiki-2005-02-06-CustomPHP.patch

Also:

Note: patch was created using diff

diff -Naur dokuwiki-2005-02-06 dokuwiki-2005-02-06-CustomPHP/ > dokuwiki-2005-02-06-CustomPHP.patch

Sparkline

Requires: CustomPHP

  1. untar the directory contained in the tar file into the root dokuwiki folder
  2. create a symbolic link in the same directory named ‘sparkline’ that points to the sparkline-<date_version> directory