@@ -284,14 +284,14 @@ discard block |
||
| 284 | 284 | $permissions = 0; |
| 285 | 285 | |
| 286 | 286 | if (!$isFederatedShare && $share->getNode()->getOwner() && $share->getNode()->getOwner()->getUID() !== $share->getSharedBy()) { |
| 287 | - $userMounts = array_filter($userFolder->getById($share->getNode()->getId()), function ($mount) { |
|
| 287 | + $userMounts = array_filter($userFolder->getById($share->getNode()->getId()), function($mount) { |
|
| 288 | 288 | // We need to filter since there might be other mountpoints that contain the file |
| 289 | 289 | // e.g. if the user has access to the same external storage that the file is originating from |
| 290 | 290 | return $mount->getStorage()->instanceOfStorage(ISharedStorage::class); |
| 291 | 291 | }); |
| 292 | 292 | $userMount = array_shift($userMounts); |
| 293 | 293 | if ($userMount === null) { |
| 294 | - throw new GenericShareException('Could not get proper share mount for ' . $share->getNode()->getId() . '. Failing since else the next calls are called with null'); |
|
| 294 | + throw new GenericShareException('Could not get proper share mount for '.$share->getNode()->getId().'. Failing since else the next calls are called with null'); |
|
| 295 | 295 | } |
| 296 | 296 | $mount = $userMount->getMountPoint(); |
| 297 | 297 | // When it's a reshare use the parent share permissions as maximum |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $userMountPoint = array_shift($userMountPoints); |
| 301 | 301 | |
| 302 | 302 | if ($userMountPoint === null) { |
| 303 | - throw new GenericShareException('Could not get proper user mount for ' . $userMountPointId . '. Failing since else the next calls are called with null'); |
|
| 303 | + throw new GenericShareException('Could not get proper user mount for '.$userMountPointId.'. Failing since else the next calls are called with null'); |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | /* Check if this is an incoming share */ |
@@ -405,11 +405,11 @@ discard block |
||
| 405 | 405 | $expirationDate = new \DateTime(); |
| 406 | 406 | $expirationDate->setTime(0, 0, 0); |
| 407 | 407 | |
| 408 | - $days = (int)$this->config->getAppValue('core', $configProp, (string)$defaultExpireDays); |
|
| 408 | + $days = (int) $this->config->getAppValue('core', $configProp, (string) $defaultExpireDays); |
|
| 409 | 409 | if ($days > $defaultExpireDays) { |
| 410 | 410 | $days = $defaultExpireDays; |
| 411 | 411 | } |
| 412 | - $expirationDate->add(new \DateInterval('P' . $days . 'D')); |
|
| 412 | + $expirationDate->add(new \DateInterval('P'.$days.'D')); |
|
| 413 | 413 | } |
| 414 | 414 | |
| 415 | 415 | // If we enforce the expiration date check that is does not exceed |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | |
| 421 | 421 | $date = new \DateTime(); |
| 422 | 422 | $date->setTime(0, 0, 0); |
| 423 | - $date->add(new \DateInterval('P' . $defaultExpireDays . 'D')); |
|
| 423 | + $date->add(new \DateInterval('P'.$defaultExpireDays.'D')); |
|
| 424 | 424 | if ($date < $expirationDate) { |
| 425 | 425 | $message = $this->l->n('Cannot set expiration date more than %n day in the future', 'Cannot set expiration date more than %n days in the future', $defaultExpireDays); |
| 426 | 426 | throw new GenericShareException($message, $message, 404); |
@@ -481,11 +481,11 @@ discard block |
||
| 481 | 481 | $expirationDate = new \DateTime(); |
| 482 | 482 | $expirationDate->setTime(0, 0, 0); |
| 483 | 483 | |
| 484 | - $days = (int)$this->config->getAppValue('core', 'link_defaultExpDays', $this->shareApiLinkDefaultExpireDays()); |
|
| 484 | + $days = (int) $this->config->getAppValue('core', 'link_defaultExpDays', $this->shareApiLinkDefaultExpireDays()); |
|
| 485 | 485 | if ($days > $this->shareApiLinkDefaultExpireDays()) { |
| 486 | 486 | $days = $this->shareApiLinkDefaultExpireDays(); |
| 487 | 487 | } |
| 488 | - $expirationDate->add(new \DateInterval('P' . $days . 'D')); |
|
| 488 | + $expirationDate->add(new \DateInterval('P'.$days.'D')); |
|
| 489 | 489 | } |
| 490 | 490 | |
| 491 | 491 | // If we enforce the expiration date check that is does not exceed |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | |
| 497 | 497 | $date = new \DateTime(); |
| 498 | 498 | $date->setTime(0, 0, 0); |
| 499 | - $date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D')); |
|
| 499 | + $date->add(new \DateInterval('P'.$this->shareApiLinkDefaultExpireDays().'D')); |
|
| 500 | 500 | if ($date < $expirationDate) { |
| 501 | 501 | $message = $this->l->n('Cannot set expiration date more than %n day in the future', 'Cannot set expiration date more than %n days in the future', $this->shareApiLinkDefaultExpireDays()); |
| 502 | 502 | throw new GenericShareException($message, $message, 404); |
@@ -781,7 +781,7 @@ discard block |
||
| 781 | 781 | } |
| 782 | 782 | |
| 783 | 783 | // Generate the target |
| 784 | - $target = $this->config->getSystemValue('share_folder', '/') . '/' . $share->getNode()->getName(); |
|
| 784 | + $target = $this->config->getSystemValue('share_folder', '/').'/'.$share->getNode()->getName(); |
|
| 785 | 785 | $target = \OC\Files\Filesystem::normalizePath($target); |
| 786 | 786 | $share->setTarget($target); |
| 787 | 787 | |
@@ -832,12 +832,12 @@ discard block |
||
| 832 | 832 | $emailAddress, |
| 833 | 833 | $share->getExpirationDate() |
| 834 | 834 | ); |
| 835 | - $this->logger->debug('Sent share notification to ' . $emailAddress . ' for share with ID ' . $share->getId(), ['app' => 'share']); |
|
| 835 | + $this->logger->debug('Sent share notification to '.$emailAddress.' for share with ID '.$share->getId(), ['app' => 'share']); |
|
| 836 | 836 | } else { |
| 837 | - $this->logger->debug('Share notification not sent to ' . $share->getSharedWith() . ' because email address is not set.', ['app' => 'share']); |
|
| 837 | + $this->logger->debug('Share notification not sent to '.$share->getSharedWith().' because email address is not set.', ['app' => 'share']); |
|
| 838 | 838 | } |
| 839 | 839 | } else { |
| 840 | - $this->logger->debug('Share notification not sent to ' . $share->getSharedWith() . ' because user could not be found.', ['app' => 'share']); |
|
| 840 | + $this->logger->debug('Share notification not sent to '.$share->getSharedWith().' because user could not be found.', ['app' => 'share']); |
|
| 841 | 841 | } |
| 842 | 842 | } else { |
| 843 | 843 | $this->logger->debug('Share notification not sent because mailsend is false.', ['app' => 'share']); |
@@ -884,7 +884,7 @@ discard block |
||
| 884 | 884 | $text = $l->t('%1$s shared »%2$s« with you.', [$initiatorDisplayName, $filename]); |
| 885 | 885 | |
| 886 | 886 | $emailTemplate->addBodyText( |
| 887 | - htmlspecialchars($text . ' ' . $l->t('Click the button below to open it.')), |
|
| 887 | + htmlspecialchars($text.' '.$l->t('Click the button below to open it.')), |
|
| 888 | 888 | $text |
| 889 | 889 | ); |
| 890 | 890 | $emailTemplate->addBodyButton( |
@@ -910,7 +910,7 @@ discard block |
||
| 910 | 910 | $initiatorEmail = $initiatorUser->getEMailAddress(); |
| 911 | 911 | if ($initiatorEmail !== null) { |
| 912 | 912 | $message->setReplyTo([$initiatorEmail => $initiatorDisplayName]); |
| 913 | - $emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan($l->getLanguageCode()) !== '' ? ' - ' . $this->defaults->getSlogan($l->getLanguageCode()) : '')); |
|
| 913 | + $emailTemplate->addFooter($instanceName.($this->defaults->getSlogan($l->getLanguageCode()) !== '' ? ' - '.$this->defaults->getSlogan($l->getLanguageCode()) : '')); |
|
| 914 | 914 | } else { |
| 915 | 915 | $emailTemplate->addFooter('', $l->getLanguageCode()); |
| 916 | 916 | } |
@@ -919,7 +919,7 @@ discard block |
||
| 919 | 919 | try { |
| 920 | 920 | $failedRecipients = $this->mailer->send($message); |
| 921 | 921 | if (!empty($failedRecipients)) { |
| 922 | - $this->logger->error('Share notification mail could not be sent to: ' . implode(', ', $failedRecipients)); |
|
| 922 | + $this->logger->error('Share notification mail could not be sent to: '.implode(', ', $failedRecipients)); |
|
| 923 | 923 | return; |
| 924 | 924 | } |
| 925 | 925 | } catch (\Exception $e) { |
@@ -1083,7 +1083,7 @@ discard block |
||
| 1083 | 1083 | * @since 9.0.0 |
| 1084 | 1084 | */ |
| 1085 | 1085 | public function acceptShare(IShare $share, string $recipientId): IShare { |
| 1086 | - [$providerId,] = $this->splitFullId($share->getFullId()); |
|
| 1086 | + [$providerId, ] = $this->splitFullId($share->getFullId()); |
|
| 1087 | 1087 | $provider = $this->factory->getProvider($providerId); |
| 1088 | 1088 | |
| 1089 | 1089 | if (!method_exists($provider, 'acceptShare')) { |
@@ -1206,7 +1206,7 @@ discard block |
||
| 1206 | 1206 | * @param string $recipientId |
| 1207 | 1207 | */ |
| 1208 | 1208 | public function deleteFromSelf(IShare $share, $recipientId) { |
| 1209 | - [$providerId,] = $this->splitFullId($share->getFullId()); |
|
| 1209 | + [$providerId, ] = $this->splitFullId($share->getFullId()); |
|
| 1210 | 1210 | $provider = $this->factory->getProvider($providerId); |
| 1211 | 1211 | |
| 1212 | 1212 | $provider->deleteFromSelf($share, $recipientId); |
@@ -1215,7 +1215,7 @@ discard block |
||
| 1215 | 1215 | } |
| 1216 | 1216 | |
| 1217 | 1217 | public function restoreShare(IShare $share, string $recipientId): IShare { |
| 1218 | - [$providerId,] = $this->splitFullId($share->getFullId()); |
|
| 1218 | + [$providerId, ] = $this->splitFullId($share->getFullId()); |
|
| 1219 | 1219 | $provider = $this->factory->getProvider($providerId); |
| 1220 | 1220 | |
| 1221 | 1221 | return $provider->restore($share, $recipientId); |
@@ -1237,7 +1237,7 @@ discard block |
||
| 1237 | 1237 | if ($share->getShareType() === IShare::TYPE_GROUP) { |
| 1238 | 1238 | $sharedWith = $this->groupManager->get($share->getSharedWith()); |
| 1239 | 1239 | if (is_null($sharedWith)) { |
| 1240 | - throw new \InvalidArgumentException('Group "' . $share->getSharedWith() . '" does not exist'); |
|
| 1240 | + throw new \InvalidArgumentException('Group "'.$share->getSharedWith().'" does not exist'); |
|
| 1241 | 1241 | } |
| 1242 | 1242 | $recipient = $this->userManager->get($recipientId); |
| 1243 | 1243 | if (!$sharedWith->inGroup($recipient)) { |
@@ -1245,7 +1245,7 @@ discard block |
||
| 1245 | 1245 | } |
| 1246 | 1246 | } |
| 1247 | 1247 | |
| 1248 | - [$providerId,] = $this->splitFullId($share->getFullId()); |
|
| 1248 | + [$providerId, ] = $this->splitFullId($share->getFullId()); |
|
| 1249 | 1249 | $provider = $this->factory->getProvider($providerId); |
| 1250 | 1250 | |
| 1251 | 1251 | return $provider->move($share, $recipientId); |
@@ -1254,7 +1254,7 @@ discard block |
||
| 1254 | 1254 | public function getSharesInFolder($userId, Folder $node, $reshares = false) { |
| 1255 | 1255 | $providers = $this->factory->getAllProviders(); |
| 1256 | 1256 | |
| 1257 | - return array_reduce($providers, function ($shares, IShareProvider $provider) use ($userId, $node, $reshares) { |
|
| 1257 | + return array_reduce($providers, function($shares, IShareProvider $provider) use ($userId, $node, $reshares) { |
|
| 1258 | 1258 | $newShares = $provider->getSharesInFolder($userId, $node, $reshares); |
| 1259 | 1259 | foreach ($newShares as $fid => $data) { |
| 1260 | 1260 | if (!isset($shares[$fid])) { |
@@ -1371,12 +1371,12 @@ discard block |
||
| 1371 | 1371 | $shares = $this->getSharedWith($userId, $shareType, $node, $limit, $offset); |
| 1372 | 1372 | |
| 1373 | 1373 | // Only get deleted shares |
| 1374 | - $shares = array_filter($shares, function (IShare $share) { |
|
| 1374 | + $shares = array_filter($shares, function(IShare $share) { |
|
| 1375 | 1375 | return $share->getPermissions() === 0; |
| 1376 | 1376 | }); |
| 1377 | 1377 | |
| 1378 | 1378 | // Only get shares where the owner still exists |
| 1379 | - $shares = array_filter($shares, function (IShare $share) { |
|
| 1379 | + $shares = array_filter($shares, function(IShare $share) { |
|
| 1380 | 1380 | return $this->userManager->userExists($share->getShareOwner()); |
| 1381 | 1381 | }); |
| 1382 | 1382 | |
@@ -1673,7 +1673,7 @@ discard block |
||
| 1673 | 1673 | } |
| 1674 | 1674 | $al['users'][$owner] = [ |
| 1675 | 1675 | 'node_id' => $path->getId(), |
| 1676 | - 'node_path' => '/' . $ownerPath, |
|
| 1676 | + 'node_path' => '/'.$ownerPath, |
|
| 1677 | 1677 | ]; |
| 1678 | 1678 | } else { |
| 1679 | 1679 | $al['users'][] = $owner; |
@@ -1746,7 +1746,7 @@ discard block |
||
| 1746 | 1746 | $excludedGroups = json_decode($this->config->getAppValue('core', 'shareapi_allow_links_exclude_groups', '[]')); |
| 1747 | 1747 | if ($excludedGroups) { |
| 1748 | 1748 | $userGroups = $this->groupManager->getUserGroupIds($user); |
| 1749 | - return !(bool)array_intersect($excludedGroups, $userGroups); |
|
| 1749 | + return !(bool) array_intersect($excludedGroups, $userGroups); |
|
| 1750 | 1750 | } |
| 1751 | 1751 | } |
| 1752 | 1752 | |
@@ -1789,7 +1789,7 @@ discard block |
||
| 1789 | 1789 | * @return int |
| 1790 | 1790 | */ |
| 1791 | 1791 | public function shareApiLinkDefaultExpireDays() { |
| 1792 | - return (int)$this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'); |
|
| 1792 | + return (int) $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'); |
|
| 1793 | 1793 | } |
| 1794 | 1794 | |
| 1795 | 1795 | /** |
@@ -1836,7 +1836,7 @@ discard block |
||
| 1836 | 1836 | * @return int |
| 1837 | 1837 | */ |
| 1838 | 1838 | public function shareApiInternalDefaultExpireDays(): int { |
| 1839 | - return (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); |
|
| 1839 | + return (int) $this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); |
|
| 1840 | 1840 | } |
| 1841 | 1841 | |
| 1842 | 1842 | /** |
@@ -1845,7 +1845,7 @@ discard block |
||
| 1845 | 1845 | * @return int |
| 1846 | 1846 | */ |
| 1847 | 1847 | public function shareApiRemoteDefaultExpireDays(): int { |
| 1848 | - return (int)$this->config->getAppValue('core', 'shareapi_remote_expire_after_n_days', '7'); |
|
| 1848 | + return (int) $this->config->getAppValue('core', 'shareapi_remote_expire_after_n_days', '7'); |
|
| 1849 | 1849 | } |
| 1850 | 1850 | |
| 1851 | 1851 | /** |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | // TODO: move this to the generated config.js |
| 30 | 30 | /** @var IManager $shareManager */ |
| 31 | 31 | $shareManager = \OC::$server->get(IManager::class); |
| 32 | -$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';; |
|
| 32 | +$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no'; ; |
|
| 33 | 33 | |
| 34 | 34 | $showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); |
| 35 | 35 | $isIE = OC_Util::isIe(); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Core class wrappers |
| 86 | 86 | */ |
| 87 | - $container->registerService(Manager::class, function (SimpleContainer $c) use ($server) { |
|
| 87 | + $container->registerService(Manager::class, function(SimpleContainer $c) use ($server) { |
|
| 88 | 88 | $user = $server->getUserSession()->getUser(); |
| 89 | 89 | $uid = $user ? $user->getUID() : null; |
| 90 | 90 | return new \OCA\Files_Sharing\External\Manager( |
@@ -110,10 +110,10 @@ discard block |
||
| 110 | 110 | $container->registerMiddleWare(OCSShareAPIMiddleware::class); |
| 111 | 111 | $container->registerMiddleWare(ShareInfoMiddleware::class); |
| 112 | 112 | |
| 113 | - $container->registerService('ExternalMountProvider', function (ContainerInterface $c) { |
|
| 113 | + $container->registerService('ExternalMountProvider', function(ContainerInterface $c) { |
|
| 114 | 114 | return new \OCA\Files_Sharing\External\MountProvider( |
| 115 | 115 | $c->get(IDBConnection::class), |
| 116 | - function () use ($c) { |
|
| 116 | + function() use ($c) { |
|
| 117 | 117 | return $c->get(Manager::class); |
| 118 | 118 | }, |
| 119 | 119 | $c->get(ICloudIdManager::class) |
@@ -148,19 +148,19 @@ discard block |
||
| 148 | 148 | $dispatcher->addServiceListener(BeforeTemplateRenderedEvent::class, LegacyBeforeTemplateRenderedListener::class); |
| 149 | 149 | $dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class); |
| 150 | 150 | $dispatcher->addServiceListener(ShareCreatedEvent::class, ShareInteractionListener::class); |
| 151 | - $dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { |
|
| 151 | + $dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() { |
|
| 152 | 152 | \OCP\Util::addScript('files_sharing', 'dist/collaboration'); |
| 153 | 153 | }); |
| 154 | 154 | $dispatcher->addServiceListener(ShareCreatedEvent::class, UserShareAcceptanceListener::class); |
| 155 | 155 | $dispatcher->addServiceListener(UserAddedEvent::class, UserAddedToGroupListener::class); |
| 156 | 156 | |
| 157 | 157 | // notifications api to accept incoming user shares |
| 158 | - $oldDispatcher->addListener('OCP\Share::postShare', function (GenericEvent $event) { |
|
| 158 | + $oldDispatcher->addListener('OCP\Share::postShare', function(GenericEvent $event) { |
|
| 159 | 159 | /** @var Listener $listener */ |
| 160 | 160 | $listener = $this->getContainer()->query(Listener::class); |
| 161 | 161 | $listener->shareNotification($event); |
| 162 | 162 | }); |
| 163 | - $oldDispatcher->addListener(IGroup::class . '::postAddUser', function (GenericEvent $event) { |
|
| 163 | + $oldDispatcher->addListener(IGroup::class.'::postAddUser', function(GenericEvent $event) { |
|
| 164 | 164 | /** @var Listener $listener */ |
| 165 | 165 | $listener = $this->getContainer()->query(Listener::class); |
| 166 | 166 | $listener->userAddedToGroup($event); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | // show_Quick_Access stored as string |
| 179 | - \OCA\Files\App::getNavigationManager()->add(function () use ($shareManager) { |
|
| 179 | + \OCA\Files\App::getNavigationManager()->add(function() use ($shareManager) { |
|
| 180 | 180 | $l = \OC::$server->getL10N('files_sharing'); |
| 181 | 181 | /** @var IUserSession $userSession */ |
| 182 | 182 | $userSession = \OC::$server->get(IUserSession::class); |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $res['group'] = []; |
| 116 | 116 | $res['group']['enabled'] = $this->shareManager->allowGroupSharing(); |
| 117 | 117 | $res['group']['expire_date']['enabled'] = true; |
| 118 | - $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
| 118 | + $res['default_permissions'] = (int) $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | //Federated sharing |
@@ -27,17 +27,17 @@ discard block |
||
| 27 | 27 | ?> |
| 28 | 28 | |
| 29 | 29 | <div class="section" id="shareAPI"> |
| 30 | - <h2><?php p($l->t('Sharing'));?></h2> |
|
| 30 | + <h2><?php p($l->t('Sharing')); ?></h2> |
|
| 31 | 31 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 32 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 32 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 33 | 33 | href="<?php p(link_to_docs('admin-sharing')); ?>"></a> |
| 34 | - <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.'));?></p> |
|
| 34 | + <p class="settings-hint"><?php p($l->t('As admin you can fine-tune the sharing behavior. Please see the documentation for more information.')); ?></p> |
|
| 35 | 35 | <p id="enable"> |
| 36 | 36 | <input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" class="checkbox" |
| 37 | 37 | value="1" <?php if ($_['shareAPIEnabled'] === 'yes') { |
| 38 | 38 | print_unescaped('checked="checked"'); |
| 39 | 39 | } ?> /> |
| 40 | - <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API'));?></label><br/> |
|
| 40 | + <label for="shareAPIEnabled"><?php p($l->t('Allow apps to use the Share API')); ?></label><br/> |
|
| 41 | 41 | </p> |
| 42 | 42 | |
| 43 | 43 | <p id="internalShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | value="1" <?php if ($_['shareDefaultInternalExpireDateSet'] === 'yes') { |
| 48 | 48 | print_unescaped('checked="checked"'); |
| 49 | 49 | } ?> /> |
| 50 | - <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares'));?></label><br/> |
|
| 50 | + <label for="shareapiDefaultInternalExpireDate"><?php p($l->t('Set default expiration date for shares')); ?></label><br/> |
|
| 51 | 51 | </p> |
| 52 | 52 | <p id="setDefaultInternalExpireDate" class="double-indent <?php if ($_['shareDefaultInternalExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
| 53 | 53 | p('hidden'); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') { |
| 61 | 61 | print_unescaped('checked="checked"'); |
| 62 | 62 | } ?> /> |
| 63 | - <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
| 63 | + <label for="shareapiInternalEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
| 64 | 64 | </p> |
| 65 | 65 | |
| 66 | 66 | <p id="remoteShareSettings" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | value="1" <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'yes') { |
| 71 | 71 | print_unescaped('checked="checked"'); |
| 72 | 72 | } ?> /> |
| 73 | - <label for="shareapiDefaultRemoteExpireDate"><?php p($l->t('Set default expiration date for shares to other servers'));?></label><br/> |
|
| 73 | + <label for="shareapiDefaultRemoteExpireDate"><?php p($l->t('Set default expiration date for shares to other servers')); ?></label><br/> |
|
| 74 | 74 | </p> |
| 75 | 75 | <p id="setDefaultRemoteExpireDate" class="double-indent <?php if ($_['shareDefaultRemoteExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
| 76 | 76 | p('hidden'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | value="1" <?php if ($_['shareRemoteEnforceExpireDate'] === 'yes') { |
| 84 | 84 | print_unescaped('checked="checked"'); |
| 85 | 85 | } ?> /> |
| 86 | - <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
| 86 | + <label for="shareapiRemoteEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
| 87 | 87 | </p> |
| 88 | 88 | |
| 89 | 89 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | value="1" <?php if ($_['allowLinks'] === 'yes') { |
| 94 | 94 | print_unescaped('checked="checked"'); |
| 95 | 95 | } ?> /> |
| 96 | - <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails'));?></label><br/> |
|
| 96 | + <label for="allowLinks"><?php p($l->t('Allow users to share via link and emails')); ?></label><br/> |
|
| 97 | 97 | </p> |
| 98 | 98 | |
| 99 | 99 | <p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') { |
@@ -103,23 +103,23 @@ discard block |
||
| 103 | 103 | value="1" <?php if ($_['allowPublicUpload'] == 'yes') { |
| 104 | 104 | print_unescaped('checked="checked"'); |
| 105 | 105 | } ?> /> |
| 106 | - <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/> |
|
| 106 | + <label for="allowPublicUpload"><?php p($l->t('Allow public uploads')); ?></label><br/> |
|
| 107 | 107 | <input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox" |
| 108 | 108 | value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') { |
| 109 | 109 | print_unescaped('checked="checked"'); |
| 110 | 110 | } ?> /> |
| 111 | - <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/> |
|
| 111 | + <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password')); ?></label><br/> |
|
| 112 | 112 | <input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox" |
| 113 | 113 | value="1" <?php if ($_['enforceLinkPassword']) { |
| 114 | 114 | print_unescaped('checked="checked"'); |
| 115 | 115 | } ?> /> |
| 116 | - <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/> |
|
| 116 | + <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection')); ?></label><br/> |
|
| 117 | 117 | |
| 118 | 118 | <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox" |
| 119 | 119 | value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') { |
| 120 | 120 | print_unescaped('checked="checked"'); |
| 121 | 121 | } ?> /> |
| 122 | - <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date'));?></label><br/> |
|
| 122 | + <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date')); ?></label><br/> |
|
| 123 | 123 | |
| 124 | 124 | </p> |
| 125 | 125 | <p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
@@ -133,13 +133,13 @@ discard block |
||
| 133 | 133 | value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') { |
| 134 | 134 | print_unescaped('checked="checked"'); |
| 135 | 135 | } ?> /> |
| 136 | - <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
| 136 | + <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
| 137 | 137 | </p> |
| 138 | 138 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 139 | 139 | p('hidden'); |
| 140 | 140 | }?>"> |
| 141 | 141 | <p class="indent"> |
| 142 | - <?php p($l->t('Exclude groups from creating link shares:'));?> |
|
| 142 | + <?php p($l->t('Exclude groups from creating link shares:')); ?> |
|
| 143 | 143 | </p> |
| 144 | 144 | <p id="selectLinksExcludedGroups" class="indent <?php if ($_['allowLinks'] === 'no') { |
| 145 | 145 | p('hidden'); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | value="1" <?php if ($_['allowResharing'] === 'yes') { |
| 151 | 151 | print_unescaped('checked="checked"'); |
| 152 | 152 | } ?> /> |
| 153 | - <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> |
|
| 153 | + <label for="allowResharing"><?php p($l->t('Allow resharing')); ?></label><br/> |
|
| 154 | 154 | </p> |
| 155 | 155 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 156 | 156 | p('hidden'); |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | value="1" <?php if ($_['allowGroupSharing'] === 'yes') { |
| 160 | 160 | print_unescaped('checked="checked"'); |
| 161 | 161 | } ?> /> |
| 162 | - <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br /> |
|
| 162 | + <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups')); ?></label><br /> |
|
| 163 | 163 | </p> |
| 164 | 164 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 165 | 165 | p('hidden'); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | value="1" <?php if ($_['onlyShareWithGroupMembers']) { |
| 169 | 169 | print_unescaped('checked="checked"'); |
| 170 | 170 | } ?> /> |
| 171 | - <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/> |
|
| 171 | + <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups')); ?></label><br/> |
|
| 172 | 172 | </p> |
| 173 | 173 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
| 174 | 174 | p('hidden'); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | value="1" <?php if ($_['shareExcludeGroups']) { |
| 178 | 178 | print_unescaped('checked="checked"'); |
| 179 | 179 | } ?> /> |
| 180 | - <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/> |
|
| 180 | + <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing')); ?></label><br/> |
|
| 181 | 181 | </p> |
| 182 | 182 | <p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') { |
| 183 | 183 | p('hidden'); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | <?php if ($_['allowShareDialogUserEnumeration'] === 'yes') { |
| 195 | 195 | print_unescaped('checked="checked"'); |
| 196 | 196 | } ?> /> |
| 197 | - <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog'));?></label><br /> |
|
| 197 | + <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog')); ?></label><br /> |
|
| 198 | 198 | </p> |
| 199 | 199 | |
| 200 | 200 | <p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | <?php if ($_['restrictUserEnumerationToGroup'] === 'yes') { |
| 205 | 205 | print_unescaped('checked="checked"'); |
| 206 | 206 | } ?> /> |
| 207 | - <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups'));?></label><br /> |
|
| 207 | + <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups')); ?></label><br /> |
|
| 208 | 208 | </p> |
| 209 | 209 | |
| 210 | 210 | <p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
@@ -214,12 +214,12 @@ discard block |
||
| 214 | 214 | <?php if ($_['restrictUserEnumerationToPhone'] === 'yes') { |
| 215 | 215 | print_unescaped('checked="checked"'); |
| 216 | 216 | } ?> /> |
| 217 | - <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration'));?></label><br /> |
|
| 217 | + <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phone number integration')); ?></label><br /> |
|
| 218 | 218 | </p> |
| 219 | 219 | <p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
| 220 | 220 | p('hidden'); |
| 221 | 221 | }?>"> |
| 222 | - <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.'));?></em><br /> |
|
| 222 | + <em><?php p($l->t('If autocompletion "same group" and "phone number integration" are enabled a match in either is enough to show the user.')); ?></em><br /> |
|
| 223 | 223 | </p> |
| 224 | 224 | <p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
| 225 | 225 | p('hidden'); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | <?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') { |
| 229 | 229 | print_unescaped('checked="checked"'); |
| 230 | 230 | } ?> /> |
| 231 | - <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow username autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)'));?></label><br /> |
|
| 231 | + <label for="shareapi_restrict_user_enumeration_full_match"><?php p($l->t('Allow username autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)')); ?></label><br /> |
|
| 232 | 232 | </p> |
| 233 | 233 | |
| 234 | 234 | <p> |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | <?php if ($_['publicShareDisclaimerText'] !== null) { |
| 237 | 237 | print_unescaped('checked="checked"'); |
| 238 | 238 | } ?> /> |
| 239 | - <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)'));?></label> |
|
| 239 | + <label for="publicShareDisclaimer"><?php p($l->t('Show disclaimer text on the public link upload page (only shown when the file list is hidden)')); ?></label> |
|
| 240 | 240 | <span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span> |
| 241 | 241 | <br/> |
| 242 | 242 | <textarea placeholder="<?php p($l->t('This text will be shown on the public link upload page when the file list is hidden.')) ?>" id="publicShareDisclaimerText" <?php if ($_['publicShareDisclaimerText'] === null) { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea> |
| 245 | 245 | </p> |
| 246 | 246 | |
| 247 | - <h3><?php p($l->t('Default share permissions'));?></h3> |
|
| 247 | + <h3><?php p($l->t('Default share permissions')); ?></h3> |
|
| 248 | 248 | <input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox" |
| 249 | 249 | value="<?php p($_['shareApiDefaultPermissions']) ?>" /> |
| 250 | 250 | <p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) { |
| 256 | 256 | print_unescaped('checked="checked"'); |
| 257 | 257 | } ?> /> |
| 258 | - <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> |
|
| 258 | + <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']); ?></label> |
|
| 259 | 259 | <?php endforeach ?> |
| 260 | 260 | </p> |
| 261 | 261 | </div> |