From 61f6d5872829872c2067258e60759549516716e7 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Thu, 29 Sep 2011 16:01:52 +0200 Subject: added auth token feature --- start.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'start.php') diff --git a/start.php b/start.php index 36b82c941..54ab6e296 100644 --- a/start.php +++ b/start.php @@ -132,6 +132,7 @@ function event_calendar_url($entity) { * Add group event: event_calendar/add/ * Review requests: event_calendar/review_requests/ * Display event subscribers: event_calendar/display_users/ + * Events for a user's calendar: event_calendar/owner///// * * Title is ignored * @@ -215,6 +216,36 @@ function event_calendar_page_handler($page) { } echo event_calendar_get_page_content_list($page_type,$group_guid,$start_date,$display_mode,$filter_mode,$region); break; + case 'owner': + if (isset($page[1])) { + $username = $page[1]; + $user = get_user_by_username($username); + $user_guid = $user->guid; + if (isset($page[2])) { + $start_date = $page[2]; + if (isset($page[3])) { + $display_mode = $page[3]; + if (isset($page[4])) { + $filter_mode = $page[4]; + if (isset($page[5])) { + $region = $page[5]; + } else { + $region = ''; + } + } else { + $filter_mode = ''; + } + } else { + $display_mode = ''; + } + } else { + $start_date = ''; + } + } else { + $group_guid = 0; + } + echo event_calendar_get_page_content_list($page_type,$user_guid,$start_date,$display_mode,$filter_mode,$region); + break; case 'review_requests': gatekeeper(); echo event_calendar_get_page_content_review_requests($page[1]); -- cgit v1.2.3