barneym
I've noticed an obscure problem with the Config plugin for managing the local.php and dokuwiki.php settings.
The instructions for implementing automatic login available on the DokuWiki main site, call for a block of code to be added at the top of local.php similar to the below. This extracts the user name from the authentication string to facilitate the rest of the process:
if (isset($_SERVER['AUTH_USER']) and !isset($_SESSION[$conf['title']]['auth']['info'])) {
list($d, $username) = split("\\\\", strtolower($_SERVER['AUTH_USER']), 2);
$_REQUEST['u'] = $username;
}
The problem is that this renders the Config plugin useless as any modifications immediately wipe the above line and disable automatic authentication (**neat**).
I wanted to modify Config so that either a) the above could be tagged via comments as a "do not touch" area of the local.php, or b) allow configuring the above code within Config, or c) place the above code in a better location.
Unfortunately, I was not able to fully grock how the Config plugin and its underlying config data object manipulated all of the parts adequately to identify an easy solution.
Admittedly I haven't had a lot of time with this problem, but if anyone has guidance or suggestions on how to best implement/proceed on this issue, please let me know.
Thanks,
Barney