[kronolith] open fct in mcal.php

Jan Schneider janmailing@gmx.de
Thu, 6 Sep 2001 16:45:14 +0200


kronolith uses just one mcal user, you don't have to add a user to mpasswd for 
each user the uses kronolith.
The different calendars for the different users are managed internally.

Jan.

Zitat von Yohann Fourteau <yohann.fourteau@wanadoo.fr>:

> 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.
> 
> -- 
> Kronolith mailing list: http://horde.org/kronolith/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org
> 
> 


:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::