Rev 1169 | Rev 1215 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1169 | Rev 1194 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | 2 | ||
| 3 | require(dirname(__FILE__)."/config.php"); |
3 | require(dirname(__FILE__)."/config.php"); |
| - | 4 | ||
| - | 5 | /* |
|
| - | 6 | |
|
| - | 7 | http://www.howtoforge.com/talking-soap-with-exchange |
|
| - | 8 | |
|
| - | 9 | */ |
|
| 4 | 10 | ||
| 5 | if (isset($_GET["function"])) |
11 | if (isset($_GET["function"])) |
| 6 | { |
12 | { |
| 7 | switch ($_GET["function"]) |
13 | switch ($_GET["function"]) |
| 8 | { |
14 | { |
| 9 | case "getMeetingsRestOfDay": |
15 | case "getMeetingsRestOfDay": |
| 10 | if (isset($_GET["shortname"])) |
16 | if (isset($_GET["shortname"])) |
| 11 | { |
17 | { |
| 12 | echo getMeetingsRestOfDay($_GET["shortname"]); |
18 | echo getMeetingsRestOfDay($_GET["shortname"]); |
| 13 | } |
19 | } |
| 14 | break; |
20 | break; |
| 15 | 21 | ||
| 16 | case "bookMeeting": |
22 | case "bookMeeting": |
| 17 | if (isset($_GET["from"]) && isset($_GET["to"])) |
23 | if (isset($_GET["from"]) && isset($_GET["to"])) |
| 18 | { |
24 | { |
| 19 | 25 | ||
| 20 | } |
26 | } |
| 21 | break; |
27 | break; |
| 22 | 28 | ||
| 23 | //case "": |
29 | //case "": |
| 24 | // |
30 | // |
| 25 | //break; |
31 | //break; |
| 26 | } |
32 | } |
| 27 | } |
33 | } |
| 28 | 34 | ||
| - | 35 | /* |
|
| - | 36 | $CreateItem->SendMeetingInvitations = "SendToNone"; |
|
| - | 37 | $CreateItem->SavedItemFolderId->DistinguishedFolderId->Id = "calendar"; |
|
| - | 38 | $CreateItem->Items->CalendarItem = array(); |
|
| - | 39 | $CreateItem->Items->CalendarItem[0]->Subject = "Hello from PHP"; |
|
| - | 40 | $CreateItem->Items->CalendarItem[0]->Start = "2010-01-01T16:00:00Z"; # ISO date format. Z denotes UTC time |
|
| - | 41 | $CreateItem->Items->CalendarItem[0]->End = "2010-01-01T17:00:00Z"; |
|
| - | 42 | $CreateItem->Items->CalendarItem[0]->IsAllDayEvent = false; |
|
| - | 43 | $CreateItem->Items->CalendarItem[0]->LegacyFreeBusyStatus = "Busy"; |
|
| - | 44 | $CreateItem->Items->CalendarItem[0]->Location = "Bahamas"; |
|
| - | 45 | $CreateItem->Items->CalendarItem[0]->Categories->String = "MyCategory"; |
|
| - | 46 | $result = $client->CreateItem($CreateItem); |
|
| - | 47 | print_array($result); |
|
| - | 48 | */ |
|
| - | 49 | ||
| - | 50 | /* |
|
| - | 51 | Get all meetings from now and 9 hours later |
|
| - | 52 | Return a JSON formed string |
|
| - | 53 | */ |
|
| 29 | function getMeetingsRestOfDay($shortname) |
54 | function getMeetingsRestOfDay($shortname) |
| 30 | { |
55 | { |
| 31 | global $Calender; |
56 | global $Calender; |
| 32 | global $wsdl; |
57 | global $wsdl; |
| 33 | $founditem = false; |
58 | $founditem = false; |