Hi tunermm.
1) Well yeah, but this turns off user profiles for all users and I still need developers to be able to change their profiles.
But I still can switch this according to user ID in session.
2) $conf['start'] is in this case not useful, unfortunately. It's not possible to put there a page in a namespace. Additionally, this changes start page for all the namespaces which is bad too.
However, I did this with simple header("Location: doku.php?id=ns:ns"); die(); according to logged user.
Anyway, thanks for pointing me in the right direction :)
Here's the code:
// put following lines at the end of conf/local.php
session_start(); // we need to start session earlier than usual
// we also need to define constants which are defined in DokuWiki later
if(!defined('DOKU_REL')) define('DOKU_REL',getBaseURL(false));
if(!defined('DOKU_COOKIE')) define('DOKU_COOKIE', 'DW'.md5(DOKU_REL.$_SERVER['SERVER_PORT']));
if($_SESSION[DOKU_COOKIE]["auth"]["user"] == "user_name"
&& substr(basename($_SERVER["REQUEST_URI"]), 0, 8) == "start")
{
if($_GET["id"] == "" || $_GET["id"] == "start")
{
header("Location:doku.php?id=totem:totem");
die();
}
$conf['disableactions'] .= ',profile';
}