[dokuwiki] Re: patch to configure location of acl.auth.php

  • From: Simon Heimlicher <heimlicher@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 05 Jul 2007 19:10:34 +0200

  Why having only the acl file outside conf/ and not the whole conf/
  outside the dokuwiki root? I think this has already been done (in
  the Debian packaging world?).
[...]
That said, I was considering that the acl information is directly associated with the pages,namespaces and users of the wiki data that change daily rather than config of the dokuwiki engine which changes only occasionally, and particularly with a new release. If I was using plain auth I'd probably want to give auth.users.php the same treatment.

I would _love_ to see the name and path of the ACL file as a configurable option.

`acl.auth.php' is a file that depends on the contents of the wiki as most entries will refer to a page or a namespace, whereas most other files in conf/ are AFAIK independent of the content.

I have a setup where I only use one dokuwiki directory and many data directories ("wiki farm"), and for this setup I had to replace all occurrences of DOKU_CONF.'acl.auth.php' with $conf['aclfile']. Doing this with `sed -i' is not a problem, but in my humble opinion, hard-coding such filenames might not necessarily best practice anyway, but since I am absolutely _not_ a PHP expert, that might be an old-fashioned view :-)

Cheers,
Simon



--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: