open fct in mcal.php

Yohann Fourteau yohann.fourteau@wanadoo.fr
Thu, 06 Sep 2001 16:38:40 +0200


If a user isn't in /etc/mpasswd, kronolith doesn't work for that user :
<b>Warning</b>:  Couldn't open stream {/mstore}<tofour>  (the browser
doesn't display <tofour> :)

And if I add the user (htpasswd /etc/mpasswd tofour), kronolith works
but only in a read-only way. 
In fact $this->mcalUsername, $this->mcalPassword is used to open the
stream (in mcal.php) and of course, that user $this->mcalUsername can't
write in tofour's calendar...

So It would be good to change the open function...

I've try :
    function open($calendar)
    {
        //$this->stream = mcal_popen("{/mstore}<$calendar>",
$this->mcalUsername, $this->mcalPassword);
        $this->stream = mcal_popen("{/mstore}<>$calendar",
$this->mcalUsername, $this->mcalPassword);
    }

then I've the same calendar for everybody (in fact "{/mstore}<>tofour" 
works like "{/mstore}<>", and I don't know why...the documentaion about
mcal is not very clear...).

If the stream was opened with the login and the passwd of the current
login (and not always the same), it will work but the /etc/mpasswd must
be populated with all the users...

So what is the good solution ?

Thanks.
-- 
Yohann F.