@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | - // First include all generally necessary classes |
|
| 9 | + // First include all generally necessary classes |
|
| 10 | 10 | require_once 'server/includes/bootstrap.php'; |
| 11 | 11 | |
| 12 | 12 | // Following classes are needed for grommunio.php |
@@ -404,7 +404,7 @@ |
||
| 404 | 404 | ]; |
| 405 | 405 | $fileDependencies[$filename] = [ |
| 406 | 406 | 'depends' => [], |
| 407 | - 'core' => $core, // Based on tag or on class or on file path? |
|
| 407 | + 'core' => $core, // Based on tag or on class or on file path? |
|
| 408 | 408 | ]; |
| 409 | 409 | |
| 410 | 410 | for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) { |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - /** |
|
| 4 | - * Utility functions. |
|
| 5 | - */ |
|
| 6 | - require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
| 3 | + /** |
|
| 4 | + * Utility functions. |
|
| 5 | + */ |
|
| 6 | + require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Function which reads the data stream. This data is send by the WebClient. |
@@ -23,12 +23,12 @@ discard block |
||
| 23 | 23 | * carried in the IPM.TaskRequest item (although this information seems |
| 24 | 24 | * redundant due to that information already being available in PR_MESSAGE_CLASS). |
| 25 | 25 | */ |
| 26 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
| 27 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
| 28 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
| 29 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
| 30 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
| 31 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
| 26 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
| 27 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
| 28 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
| 29 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
| 30 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
| 31 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
| 32 | 32 | |
| 33 | 33 | /* The TaskHistory is used to show the last action on the task |
| 34 | 34 | * on both the assigner and the assignee's side. |
@@ -38,11 +38,11 @@ discard block |
||
| 38 | 38 | * the format 'Accepted by <user> on 01-01-2010 11:00'. |
| 39 | 39 | */ |
| 40 | 40 | define('thNone', 0); |
| 41 | - define('thAccepted', 1); // Set by assignee |
|
| 42 | - define('thDeclined', 2); // Set by assignee |
|
| 43 | - define('thUpdated', 3); // Set by assignee |
|
| 41 | + define('thAccepted', 1); // Set by assignee |
|
| 42 | + define('thDeclined', 2); // Set by assignee |
|
| 43 | + define('thUpdated', 3); // Set by assignee |
|
| 44 | 44 | define('thDueDateChanged', 4); |
| 45 | - define('thAssigned', 5); // Set by assigner |
|
| 45 | + define('thAssigned', 5); // Set by assigner |
|
| 46 | 46 | |
| 47 | 47 | /* The TaskState value is used to differentiate the version of a task |
| 48 | 48 | * in the assigner's folder and the version in the |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | * the 'taskaccepted' boolean (for the assignee) |
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
| 54 | - define('tdsOWNNEW', 1); // Not assigned |
|
| 55 | - define('tdsOWN', 2); // Assignee version |
|
| 56 | - define('tdsACC', 3); // Assigner version |
|
| 57 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
| 53 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
| 54 | + define('tdsOWNNEW', 1); // Not assigned |
|
| 55 | + define('tdsOWN', 2); // Assignee version |
|
| 56 | + define('tdsACC', 3); // Assigner version |
|
| 57 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
| 58 | 58 | /* The TaskAcceptanceState is used for the assigner to indicate state */ |
| 59 | 59 | define('olTaskNotDelegated', 0); |
| 60 | 60 | define('olTaskDelegationUnknown', 1); // After sending req |
@@ -63,13 +63,13 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /* The task ownership indicates the role of the current user relative to the task. */ |
| 65 | 65 | define('olNewTask', 0); |
| 66 | - define('olDelegatedTask', 1); // Task has been assigned |
|
| 67 | - define('olOwnTask', 2); // Task owned |
|
| 66 | + define('olDelegatedTask', 1); // Task has been assigned |
|
| 67 | + define('olOwnTask', 2); // Task owned |
|
| 68 | 68 | |
| 69 | 69 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */ |
| 70 | 70 | define('tmrNone', 0); |
| 71 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
| 72 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
| 71 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
| 72 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
| 73 | 73 | |
| 74 | 74 | // Task icon index. |
| 75 | 75 | define('ICON_TASK_ASSIGNEE', 0x00000502); |
@@ -506,12 +506,12 @@ discard block |
||
| 506 | 506 | // Set properties on Task Request |
| 507 | 507 | mapi_setprops($this->message, [ |
| 508 | 508 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
| 509 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 510 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 511 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 509 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
| 510 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
| 511 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
| 512 | 512 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
| 513 | 513 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
| 514 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 514 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
| 515 | 515 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
| 516 | 516 | PR_ICON_INDEX => ICON_TASK_ASSIGNER, |
| 517 | 517 | ]); |
@@ -528,10 +528,10 @@ discard block |
||
| 528 | 528 | |
| 529 | 529 | // Make it a task request, and put it in sent items after it is sent |
| 530 | 530 | mapi_setprops($outgoing, [ |
| 531 | - PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
| 532 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 533 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 534 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 531 | + PR_MESSAGE_CLASS => 'IPM.TaskRequest', /* class is task request */ |
|
| 532 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
| 533 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
| 534 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
| 535 | 535 | PR_SUBJECT_PREFIX => $prefix, |
| 536 | 536 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
| 537 | 537 | ]); |
@@ -1187,7 +1187,7 @@ discard block |
||
| 1187 | 1187 | } |
| 1188 | 1188 | |
| 1189 | 1189 | foreach ($recips as $recip) { |
| 1190 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
| 1190 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
| 1191 | 1191 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
| 1192 | 1192 | } |
| 1193 | 1193 | |