icalsrv/icalsrv.php File Reference


Detailed Description

IcalsrvNG: Export and Import Egw events and task as ICalendar over http using Virtual Calendars.

Possible clients include Mozilla Calendar/Sunbird, Korganizer, Apple Ical and Evolution.

Note:
THIS IS STILL EXPERIMENTAL CODE do not use in production.

this script is supposed to be at: egw-root/icalsrv.php

Version:
0.9.37-ng-a2 added a todo plan for v0.9.40
Date:
20060510
Since:
0.9.37-ng-a1 removed fixed default domain authentication

0.9.36-ng-a1 first version for NAPI-3.1 (write in non owner rscs)

Author:
Jan van Lieshout <jvl (at) xs4all.nl> Rewrite and extension for egw 1.2. (see: http://www.egroupware.org ) $Id$ Based on some code from:

RalfBecker@outdoor-training.de (some original code base)

license:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Todo:
make this 'ical-service' enabled/disabled from the egw admin interface

make the definition of virtual calendars possible from a 'ical-service' web user interface user

(for 0.9.40 versions) move much parsing of the vc to class.vcsrv.inc.php and add the $vcpath var where pathinfo is parsed to communicate to vc_X class

Bug:
if you dont have enough privilages to access a personal calendar of someone icalsrv will not give you an access denied error, but will just return no events from this calendar. (Needed otherwise you cannot collect events from multiple resources into a single virtual calendar.
Todo:
make code robust against xss attacke etc.


Variables

 $auth_header
 $c = & CreateObject('phpgwapi.config','icalsrv')
 $config = & $c->config_data
 $disable_nonowner_import = false
 $GLOBALS ['egw_info']['server']['icalsrv'] = true
 $GLOBALS ['egw_info']['flags']
 $GLOBALS ['egw_info'] = array()
 $icalsrv ['enabled'] = true
 $icalsrv ['enabled'] = $config['icalsrv_enabled']
 $icalsrv ['enabled'] = isset($GLOBALS['egw_info']['user']['apps']['icalsrv'])
 $icalsrv = array()
 $icalvc = & CreateObject('icalsrv.icalvircal')
 $isdebug = False
 $logdir = false
 $logmsg = ""
 $reimport_missing_elements = true
 $reqagent = $_SERVER['HTTP_USER_AGENT']
 $reqpath = $_SERVER['PATH_INFO']
 $requri = $_SERVER['REQUEST_URI']
 $uid_export_mode = UMM_ID2UID
 $uid_import_mode = UMM_UID2ID
$icalvc auth = ':basic'
$icalvc reimport_missing_elements = $reimport_missing_elements
 allow elements gone(deleted) in egw to be imported again from client
$icalvc uid_mapping_import = $uid_import_mode


Variable Documentation

$auth_header
 

Initial value:

 $headers['Authorization']
  ? $headers['Authorization'] : $headers['authorization']

$GLOBALS['egw_info']['flags']
 

Initial value:

  array(
                'currentapp'            => 'login',
                'noheader'              => True,
                'disable_Template_class' => True
                )


Generated on Thu Jun 8 22:17:13 2006 for IcalSrv-API by  doxygen 1.4.6