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.
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.
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
Requires: CustomPHP