[dokuwiki] Re: wiki farm

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 23 Aug 2007 15:45:39 +0100

Jason Keltz wrote:

Uh oh. It looks like plugins account for many realpath references as well... (they all start by getting DOKU_INC)... would all plugins need to be patched as well? yipes.

if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');

This practice should be discouraged. The plugins included with DW now commence with the following lines

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

-- Chris
DokuWiki mailing list - more info at

Other related posts: