@@ -118,7 +118,7 @@ |
||
118 | 118 | */ |
119 | 119 | public function ImportMessageDeletion($id, $asSoftDelete = false) { |
120 | 120 | if ($this->checkForIgnoredMessages) { |
121 | - ZPush::GetDeviceManager()->RemoveBrokenMessage($id); |
|
121 | + ZPush::GetDeviceManager()->RemoveBrokenMessage($id); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | $this->importedMsgs++; |
@@ -457,14 +457,14 @@ |
||
457 | 457 | $uint = 0; |
458 | 458 | |
459 | 459 | while(1) { |
460 | - $byte = $this->getByte(); |
|
460 | + $byte = $this->getByte(); |
|
461 | 461 | |
462 | - $uint |= $byte & 0x7f; |
|
462 | + $uint |= $byte & 0x7f; |
|
463 | 463 | |
464 | - if($byte & 0x80) |
|
465 | - $uint = $uint << 7; |
|
466 | - else |
|
467 | - break; |
|
464 | + if($byte & 0x80) |
|
465 | + $uint = $uint << 7; |
|
466 | + else |
|
467 | + break; |
|
468 | 468 | } |
469 | 469 | |
470 | 470 | return $uint; |
@@ -704,33 +704,33 @@ |
||
704 | 704 | 0x17 => "ContentOwner", |
705 | 705 | 0x18 => "RemoveRightsManagementProtection", |
706 | 706 | ), |
707 | - ), |
|
708 | - "namespaces" => array( |
|
709 | - //0 => "AirSync", // |
|
710 | - 1 => "POOMCONTACTS", |
|
711 | - 2 => "POOMMAIL", |
|
712 | - 3 => "AirNotify", //no longer used |
|
713 | - 4 => "POOMCAL", |
|
714 | - 5 => "Move", |
|
715 | - 6 => "GetItemEstimate", |
|
716 | - 7 => "FolderHierarchy", |
|
717 | - 8 => "MeetingResponse", |
|
718 | - 9 => "POOMTASKS", |
|
719 | - 0xA => "ResolveRecipients", |
|
720 | - 0xB => "ValidateCert", |
|
721 | - 0xC => "POOMCONTACTS2", |
|
722 | - 0xD => "Ping", |
|
723 | - 0xE => "Provision",// |
|
724 | - 0xF => "Search",// |
|
725 | - 0x10 => "GAL", |
|
726 | - 0x11 => "AirSyncBase", //12.0, 12.1 and 14.0 |
|
727 | - 0x12 => "Settings", //12.0, 12.1 and 14.0. |
|
728 | - 0x13 => "DocumentLibrary", //12.0, 12.1 and 14.0 |
|
729 | - 0x14 => "ItemOperations", //12.0, 12.1 and 14.0 |
|
730 | - 0x15 => "ComposeMail", //14.0 |
|
731 | - 0x16 => "POOMMAIL2", //14.0 |
|
732 | - 0x17 => "Notes", //14.0 |
|
733 | - 0x18 => "RightsManagement", |
|
734 | - ) |
|
735 | - ); |
|
707 | + ), |
|
708 | + "namespaces" => array( |
|
709 | + //0 => "AirSync", // |
|
710 | + 1 => "POOMCONTACTS", |
|
711 | + 2 => "POOMMAIL", |
|
712 | + 3 => "AirNotify", //no longer used |
|
713 | + 4 => "POOMCAL", |
|
714 | + 5 => "Move", |
|
715 | + 6 => "GetItemEstimate", |
|
716 | + 7 => "FolderHierarchy", |
|
717 | + 8 => "MeetingResponse", |
|
718 | + 9 => "POOMTASKS", |
|
719 | + 0xA => "ResolveRecipients", |
|
720 | + 0xB => "ValidateCert", |
|
721 | + 0xC => "POOMCONTACTS2", |
|
722 | + 0xD => "Ping", |
|
723 | + 0xE => "Provision",// |
|
724 | + 0xF => "Search",// |
|
725 | + 0x10 => "GAL", |
|
726 | + 0x11 => "AirSyncBase", //12.0, 12.1 and 14.0 |
|
727 | + 0x12 => "Settings", //12.0, 12.1 and 14.0. |
|
728 | + 0x13 => "DocumentLibrary", //12.0, 12.1 and 14.0 |
|
729 | + 0x14 => "ItemOperations", //12.0, 12.1 and 14.0 |
|
730 | + 0x15 => "ComposeMail", //14.0 |
|
731 | + 0x16 => "POOMMAIL2", //14.0 |
|
732 | + 0x17 => "Notes", //14.0 |
|
733 | + 0x18 => "RightsManagement", |
|
734 | + ) |
|
735 | + ); |
|
736 | 736 | } |
@@ -44,21 +44,21 @@ |
||
44 | 44 | public function GetGALSearchResults($searchquery, $searchrange, $searchpicture); |
45 | 45 | |
46 | 46 | /** |
47 | - * Searches for the emails on the server |
|
48 | - * |
|
49 | - * @param ContentParameter $cpo |
|
50 | - * |
|
51 | - * @return array |
|
52 | - */ |
|
47 | + * Searches for the emails on the server |
|
48 | + * |
|
49 | + * @param ContentParameter $cpo |
|
50 | + * |
|
51 | + * @return array |
|
52 | + */ |
|
53 | 53 | public function GetMailboxSearchResults($cpo); |
54 | 54 | |
55 | 55 | /** |
56 | - * Terminates a search for a given PID |
|
57 | - * |
|
58 | - * @param int $pid |
|
59 | - * |
|
60 | - * @return boolean |
|
61 | - */ |
|
56 | + * Terminates a search for a given PID |
|
57 | + * |
|
58 | + * @param int $pid |
|
59 | + * |
|
60 | + * @return boolean |
|
61 | + */ |
|
62 | 62 | public function TerminateSearch($pid); |
63 | 63 | |
64 | 64 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | public function LinkUserDevice($username, $devid); |
110 | 110 | |
111 | - /** |
|
111 | + /** |
|
112 | 112 | * Unlinks a device from a user |
113 | 113 | * |
114 | 114 | * @param string $username |
@@ -13,11 +13,11 @@ |
||
13 | 13 | /** |
14 | 14 | * Constructor |
15 | 15 | * |
16 | - * @param int $type |
|
17 | - * @param int $allocate |
|
18 | - * @param string $class |
|
19 | - * @param string $serverKey |
|
20 | - */ |
|
16 | + * @param int $type |
|
17 | + * @param int $allocate |
|
18 | + * @param string $class |
|
19 | + * @param string $serverKey |
|
20 | + */ |
|
21 | 21 | public function __construct($type, $allocate, $class, $serverKey); |
22 | 22 | |
23 | 23 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | return $this->position; |
105 | 105 | } |
106 | 106 | |
107 | - /** |
|
107 | + /** |
|
108 | 108 | * Indicates if 'end of file' is reached |
109 | 109 | * |
110 | 110 | * @access public |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * Retrieves information about a stream |
|
137 | - * |
|
138 | - * @access public |
|
139 | - * @return array |
|
140 | - */ |
|
136 | + * Retrieves information about a stream |
|
137 | + * |
|
138 | + * @access public |
|
139 | + * @return array |
|
140 | + */ |
|
141 | 141 | public function stream_stat() { |
142 | 142 | return array( |
143 | 143 | 7 => $this->stringlength, |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ); |
146 | 146 | } |
147 | 147 | |
148 | - /** |
|
148 | + /** |
|
149 | 149 | * Instantiates a StringStreamWrapper |
150 | 150 | * |
151 | 151 | * @param string $string The string to be wrapped |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * @access public |
155 | 155 | * @return StringStreamWrapper |
156 | 156 | */ |
157 | - static public function Open($string, $truncatehtmlsafe = false) { |
|
157 | + static public function Open($string, $truncatehtmlsafe = false) { |
|
158 | 158 | $context = stream_context_create(array(self::PROTOCOL => array('string' => &$string, 'truncatehtmlsafe' => $truncatehtmlsafe))); |
159 | 159 | return fopen(self::PROTOCOL . "://",'r', false, $context); |
160 | 160 | } |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | var $mailRFC822 = true; |
137 | 137 | |
138 | 138 | /** |
139 | - * A limit after which processing stops |
|
140 | - * @var int $limit |
|
141 | - */ |
|
139 | + * A limit after which processing stops |
|
140 | + * @var int $limit |
|
141 | + */ |
|
142 | 142 | var $limit = null; |
143 | 143 | |
144 | 144 | /** |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | // $string now contains the first full address/group. |
273 | 273 | // Add to the addresses array. |
274 | 274 | $this->addresses[] = array( |
275 | - 'address' => trim($string), |
|
276 | - 'group' => $is_group |
|
277 | - ); |
|
275 | + 'address' => trim($string), |
|
276 | + 'group' => $is_group |
|
277 | + ); |
|
278 | 278 | |
279 | 279 | // Remove the now stored address from the initial line, the +1 |
280 | 280 | // is to account for the explode character. |
@@ -9,11 +9,11 @@ |
||
9 | 9 | |
10 | 10 | if (!function_exists('apache_request_headers')) { |
11 | 11 | /** |
12 | - * When using other webservers or using php as cgi in apache |
|
13 | - * the function apache_request_headers() is not available. |
|
14 | - * This function parses the environment variables to extract |
|
15 | - * the necessary headers for grommunio-sync |
|
16 | - */ |
|
12 | + * When using other webservers or using php as cgi in apache |
|
13 | + * the function apache_request_headers() is not available. |
|
14 | + * This function parses the environment variables to extract |
|
15 | + * the necessary headers for grommunio-sync |
|
16 | + */ |
|
17 | 17 | function apache_request_headers() { |
18 | 18 | $headers = array(); |
19 | 19 | foreach ($_SERVER as $key => $value) |