[dokuwiki] Re: more cleanup questions
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 26 Jun 2005 12:29:28 +0200
> The only reason is how simple it is to change. Eg. if I want to move
> the data directory out of the webserver root for security reasons. I
> would have to change 5 or more options instead of just one.
>
> Hmm.. what about this: We use a single config option called
> $conf['savedir']. In init.php we then use something like this:
>
> if(!$conf['datadir']) $conf['datadir'] = $conf['savedir'].'/pages';
> if(!$conf['mediadir']) $conf['mediadir'] = $conf['savedir'].'/pages';
> ...
>
> This way users could override single directories to their own likings
> but use a main savedir as default.
Okay I just pushed a patch containing the above solution and the following
layout:
data/ $conf['savedir']
|-- changes.log $conf['changelog']
|-- attic/ $conf['olddir']
|-- media/ $conf['mediadir']
|-- pages/ $conf['datadir']
|-- meta/ $conf['metadir']
| `-- _htcookiesalt
|-- locks/ $conf['lockdir']
`-- cache/ $conf['cachedir']
|-- 0
|-- 1
|-- ...
`-- f
By default only $conf['savedir'] is defined and all other option are
constructed from this var in init.php
Andi
- Follow-Ups:
- [dokuwiki] Re: more cleanup questions
- From: Sameer D. Sahasrabuddhe
- References:
- [dokuwiki] Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Andreas Gohr
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Andreas Gohr
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Matthias Grimm
- [dokuwiki] more cleanup questions
- From: Andreas Gohr
- [dokuwiki] Re: more cleanup questions
- From: Matthias Grimm
- [dokuwiki] Re: more cleanup questions
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- » [dokuwiki] Re: more cleanup questions
- [dokuwiki] Re: more cleanup questions
- From: Sameer D. Sahasrabuddhe
- [dokuwiki] Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Andreas Gohr
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Andreas Gohr
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Steven Danz
- [dokuwiki] Re: Proposal: FS#113, notify changes
- From: Matthias Grimm
- [dokuwiki] more cleanup questions
- From: Andreas Gohr
- [dokuwiki] Re: more cleanup questions
- From: Matthias Grimm
- [dokuwiki] Re: more cleanup questions
- From: Andreas Gohr