@@ -95,7 +95,7 @@ |
||
| 95 | 95 | 'notifier' => [ |
| 96 | 96 | 'info' => [ |
| 97 | 97 | 'files' => [ |
| 98 | - 'value' => "dropdown", // static notifier |
|
| 98 | + 'value' => "dropdown", // static notifier |
|
| 99 | 99 | ], |
| 100 | 100 | ], |
| 101 | 101 | ], |
@@ -45,37 +45,37 @@ |
||
| 45 | 45 | |
| 46 | 46 | case 'server.index.load.custom': |
| 47 | 47 | switch ($data['name']) { |
| 48 | - case 'files_get_recipients': |
|
| 49 | - RecipientHandler::doGetRecipients(); |
|
| 50 | - break; |
|
| 48 | + case 'files_get_recipients': |
|
| 49 | + RecipientHandler::doGetRecipients(); |
|
| 50 | + break; |
|
| 51 | 51 | |
| 52 | - case 'download_file': |
|
| 53 | - DownloadHandler::doDownload(); |
|
| 54 | - break; |
|
| 52 | + case 'download_file': |
|
| 53 | + DownloadHandler::doDownload(); |
|
| 54 | + break; |
|
| 55 | 55 | |
| 56 | - case 'upload_file': |
|
| 57 | - UploadHandler::doUpload(); |
|
| 58 | - break; |
|
| 56 | + case 'upload_file': |
|
| 57 | + UploadHandler::doUpload(); |
|
| 58 | + break; |
|
| 59 | 59 | |
| 60 | - case 'form': |
|
| 61 | - if (isset($_GET['backend'])) { |
|
| 62 | - $backend = urldecode($_GET["backend"]); |
|
| 63 | - } |
|
| 64 | - else { |
|
| 65 | - $backend = ''; |
|
| 66 | - } |
|
| 67 | - $backendstore = Files\Backend\BackendStore::getInstance(); |
|
| 60 | + case 'form': |
|
| 61 | + if (isset($_GET['backend'])) { |
|
| 62 | + $backend = urldecode($_GET["backend"]); |
|
| 63 | + } |
|
| 64 | + else { |
|
| 65 | + $backend = ''; |
|
| 66 | + } |
|
| 67 | + $backendstore = Files\Backend\BackendStore::getInstance(); |
|
| 68 | 68 | |
| 69 | - if ($backendstore->backendExists($backend)) { |
|
| 70 | - $backendInstance = $backendstore->getInstanceOfBackend($backend); |
|
| 71 | - $formdata = $backendInstance->getFormConfig(); |
|
| 69 | + if ($backendstore->backendExists($backend)) { |
|
| 70 | + $backendInstance = $backendstore->getInstanceOfBackend($backend); |
|
| 71 | + $formdata = $backendInstance->getFormConfig(); |
|
| 72 | 72 | |
| 73 | - exit($formdata); |
|
| 74 | - } |
|
| 73 | + exit($formdata); |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - exit("Specified backend does not exist!"); |
|
| 76 | + exit("Specified backend does not exist!"); |
|
| 77 | 77 | |
| 78 | - break; |
|
| 78 | + break; |
|
| 79 | 79 | } |
| 80 | 80 | break; |
| 81 | 81 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * Search the backend folder for backends and register them. |
| 61 | 61 | */ |
| 62 | 62 | public function initialize() { |
| 63 | - $list = []; // this hold our plugin folders |
|
| 63 | + $list = []; // this hold our plugin folders |
|
| 64 | 64 | $workdir = __DIR__ . self::BACKEND_DIR; |
| 65 | 65 | |
| 66 | 66 | // Populate the list of directories to check against |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * Search the backend folder for external backends and register them. |
| 88 | 88 | */ |
| 89 | 89 | public function initializeExternal() { |
| 90 | - $list = []; // this hold our plugin folders |
|
| 90 | + $list = []; // this hold our plugin folders |
|
| 91 | 91 | $workdir = $this->EXTERNAL_BACKEND_DIR; |
| 92 | 92 | |
| 93 | 93 | // Populate the list of directories to check against |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | "fields" => $this->formFields, |
| 192 | 192 | "formConfig" => $this->formConfig, |
| 193 | 193 | ], |
| 194 | - "data" => [ // here we can specify the default values. |
|
| 194 | + "data" => [// here we can specify the default values. |
|
| 195 | 195 | "server_address" => "files.demo.com", |
| 196 | 196 | "server_port" => "80", |
| 197 | 197 | "server_path" => "/remote.php/webdav", |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | "fields" => $this->formFields, |
| 137 | 137 | "formConfig" => $this->formConfig, |
| 138 | 138 | ], |
| 139 | - "data" => [ // here we can specify the default values. |
|
| 139 | + "data" => [// here we can specify the default values. |
|
| 140 | 140 | "server_address" => $_SERVER['HTTP_HOST'], |
| 141 | 141 | "server_ssl" => true, |
| 142 | 142 | "server_port" => "443", |
@@ -445,7 +445,7 @@ |
||
| 445 | 445 | |
| 446 | 446 | public static function my_rsa_sha_encode($data, $key_id, $signagure_alg) { |
| 447 | 447 | $algos = [ |
| 448 | - 'sha1WithRSAEncryption' => ['alg' => 'sha1', 'oid' => '1.3.14.3.2.26'], |
|
| 448 | + 'sha1WithRSAEncryption' => ['alg' => 'sha1', 'oid' => '1.3.14.3.2.26'], |
|
| 449 | 449 | 'sha256WithRSAEncryption' => ['alg' => 'sha256', 'oid' => '2.16.840.1.101.3.4.2.1'], |
| 450 | 450 | 'sha384WithRSAEncryption' => ['alg' => 'sha384', 'oid' => '2.16.840.1.101.3.4.2.2'], |
| 451 | 451 | 'sha512WithRSAEncryption' => ['alg' => 'sha512', 'oid' => '2.16.840.1.101.3.4.2.3'], |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | protected function name($tag = null) { |
| 215 | - $this->beginsequence($tag); # seq of RDN |
|
| 215 | + $this->beginsequence($tag); # seq of RDN |
|
| 216 | 216 | $res = []; |
| 217 | 217 | while ($this->in()) { |
| 218 | 218 | $parts = []; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | if ($data === CHANGE_PASSPHRASE_SUCCESS) { |
| 57 | 57 | // Reset cached passphrase. |
| 58 | 58 | $encryptionStore = EncryptionStore::getInstance(); |
| 59 | - withPHPSession(function () use ($encryptionStore) { |
|
| 59 | + withPHPSession(function() use ($encryptionStore) { |
|
| 60 | 60 | $encryptionStore->add('smime', ''); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
| 170 | 170 | } |
| 171 | 171 | else { |
| 172 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
| 172 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
| 173 | 173 | $encryptionStore->add('smime', $data['passphrase']); |
| 174 | 174 | }); |
| 175 | 175 | } |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | } |
| 455 | 455 | |
| 456 | 456 | if (!encryptionStoreExpirationSupport()) { |
| 457 | - withPHPSession(function () use ($encryptionStore) { |
|
| 457 | + withPHPSession(function() use ($encryptionStore) { |
|
| 458 | 458 | $encryptionStore->add('smime', ''); |
| 459 | 459 | }); |
| 460 | 460 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @return bool true on success or false on failure |
| 109 | 109 | */ |
| 110 | 110 | public function save($store, $parententryid, $entryid, $action) { |
| 111 | - $properiesToDelete = []; // create an array of properties which should be deleted |
|
| 111 | + $properiesToDelete = []; // create an array of properties which should be deleted |
|
| 112 | 112 | // this array is passed to $GLOBALS['operations']->saveMessage() function |
| 113 | 113 | |
| 114 | 114 | if (!$store && !$parententryid) { |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | |
| 450 | 450 | // UTC time |
| 451 | 451 | $startDateUTC = $actionProps[$type]; |
| 452 | - $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
| 452 | + $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
| 453 | 453 | |
| 454 | 454 | // get local time from UTC time |
| 455 | 455 | $recur = new Recurrence($store, []); |