[kronolith] FreeBusy feature request

Wolfgang Rosenauer wolfgang.rosenauer at an-netz.de
Thu Dec 30 04:17:55 PST 2004


Hi,

this function doesn't work for foreign attendees.

> function getFreeBusyUrl($email)
> {
>   global $registry, $prefs;
     $ident = &Identity::singleton();
     $myemail = $ident->getValue('from_addr');
> 
>   $result = $registry->call('contacts/getField', array($email,
>             'freebusyUrl',
>             unserialize($prefs->getValue('search_abook'))));
> 
     if (!is_string($result) && $myemail == $email) {
>      $calendars = Kronolith::listCalendars();
>      $i = 0;
>      foreach ($calendars as $id => $cals) {
>        if (count($calendars) == 1) {
>           $result = Horde::applicationUrl('fb.php', true, -1) .
>                     '?c=' . $id;
>           break;
>        } else {
>           if ($i == 0) {
>              $result = Horde::applicationUrl('fb.php', true, -1) .
>                        '?c[]=' . $id;
>           } else {
>              $result .= '&c[]=' . $id;
>           }
>           $i++;
>        }
>      }
>   }
>   return $result;
> }

CU,
  Wolfgang


More information about the kronolith mailing list