From: <tho...@la...> - 2005-10-07 21:24:09
|
On Mon, Oct 03, 2005 at 04:12:26PM +0100, Reini Urban wrote: > Sorry, I don't like to have pref code in WikiDB. > One way is to store it into WikiDB (meta-data attached to the UserPage) OK. Where is exactly stored meta-data 'prefs' ? Users are logged as bogouser when I try the following code : /*************/ require_once ('lib/loadsave.php'); $prefs = array ('userid' => $username,'passwd' => $passwd); $prefs = serialize ($prefs); $template = Template('homepage_byadmin', $request); $text = $template->getExpansion(); $pageinfo = array('prefs' => $prefs, 'versiondata' => array('author' => $username), 'pagedata' => '', 'pagename' => $username, 'content' => $text); SavePage ($request, $pageinfo, false, false); $message = _('User created'); /**************/ -- Thomas Harding |