Re: IRC
Reply #30 –
ok, here we go Just an idea, maybe there's a better solution....
You'd have an array which is easily extendable (related to mod authors) in Settings.php
$dirs['boarddir'] = '/var/www/htdocs/forum';
$dirs['cachedir'] = $dirs['boarddir'] . '/cache';
$dirs['sourcesdir'] = $dirs['boarddir'] . '/sources';
$dirs['controllersdir'] = $dirs['boarddir'] . '/sources/controllers';
...
In index.php it could be converted to constants.
// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
foreach($dirs as $key => $value)
{
$key = strtoupper($key);
define($key, $value);
}