@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $options |
93 | 93 | ); |
94 | 94 | |
95 | - $entries = array_map(function (array $contact) { |
|
95 | + $entries = array_map(function(array $contact) { |
|
96 | 96 | return $this->contactArrayToEntry($contact); |
97 | 97 | }, $allContacts); |
98 | 98 | return $this->filterContacts( |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | $selfUID = $self->getUID(); |
149 | 149 | |
150 | - return array_values(array_filter($entries, function (IEntry $entry) use ($skipLocal, $ownGroupsOnly, $selfGroups, $selfUID, $disallowEnumeration, $restrictEnumerationGroup, $restrictEnumerationPhone, $allowEnumerationFullMatch, $filter) { |
|
150 | + return array_values(array_filter($entries, function(IEntry $entry) use ($skipLocal, $ownGroupsOnly, $selfGroups, $selfUID, $disallowEnumeration, $restrictEnumerationGroup, $restrictEnumerationPhone, $allowEnumerationFullMatch, $filter) { |
|
151 | 151 | if ($entry->getProperty('UID') === $selfUID) { |
152 | 152 | return false; |
153 | 153 | } |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | |
246 | 246 | $userId = $user->getUID(); |
247 | 247 | $allContacts = $this->contactsManager->search($shareWith, $filter); |
248 | - $contacts = array_filter($allContacts, function ($contact) use ($userId) { |
|
248 | + $contacts = array_filter($allContacts, function($contact) use ($userId) { |
|
249 | 249 | return $contact['UID'] !== $userId; |
250 | 250 | }); |
251 | 251 | $match = null; |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $matches = []; |
280 | 280 | foreach ($userMatches as $phone => $userId) { |
281 | 281 | // Not using the ICloudIdManager as that would run a search for each contact to find the display name in the address book |
282 | - $matches[$normalizedNumberToKey[$phone]] = $userId . '@' . $cloudUrl; |
|
282 | + $matches[$normalizedNumberToKey[$phone]] = $userId.'@'.$cloudUrl; |
|
283 | 283 | $this->knownUserService->storeIsKnownToUser($knownTo, $userId); |
284 | 284 | } |
285 | 285 | |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | throw new OCSException('group '.$group.' does not exist', 104); |
344 | 344 | } |
345 | 345 | if (!$isAdmin && !$subAdminManager->isSubAdminOfGroup($user, $this->groupManager->get($group))) { |
346 | - throw new OCSException('insufficient privileges for group '. $group, 105); |
|
346 | + throw new OCSException('insufficient privileges for group '.$group, 105); |
|
347 | 347 | } |
348 | 348 | } |
349 | 349 | } else { |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | $group = $this->groupManager->get($groupid); |
359 | 359 | // Check if group exists |
360 | 360 | if ($group === null) { |
361 | - throw new OCSException('Subadmin group does not exist', 102); |
|
361 | + throw new OCSException('Subadmin group does not exist', 102); |
|
362 | 362 | } |
363 | 363 | // Check if trying to make subadmin of admin group |
364 | 364 | if ($group->getGID() === 'admin') { |
@@ -399,11 +399,11 @@ discard block |
||
399 | 399 | |
400 | 400 | try { |
401 | 401 | $newUser = $this->userManager->createUser($userid, $password); |
402 | - $this->logger->info('Successful addUser call with userid: ' . $userid, ['app' => 'ocs_api']); |
|
402 | + $this->logger->info('Successful addUser call with userid: '.$userid, ['app' => 'ocs_api']); |
|
403 | 403 | |
404 | 404 | foreach ($groups as $group) { |
405 | 405 | $this->groupManager->get($group)->addUser($newUser); |
406 | - $this->logger->info('Added userid ' . $userid . ' to group ' . $group, ['app' => 'ocs_api']); |
|
406 | + $this->logger->info('Added userid '.$userid.' to group '.$group, ['app' => 'ocs_api']); |
|
407 | 407 | } |
408 | 408 | foreach ($subadminGroups as $group) { |
409 | 409 | $subAdminManager->createSubAdmin($newUser, $group); |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | $this->knownUserService->deleteByContactUserId($targetUser->getUID()); |
696 | 696 | } |
697 | 697 | } catch (\InvalidArgumentException $e) { |
698 | - throw new OCSException('Invalid ' . $e->getMessage(), 102); |
|
698 | + throw new OCSException('Invalid '.$e->getMessage(), 102); |
|
699 | 699 | } |
700 | 700 | } |
701 | 701 | break; |
@@ -942,7 +942,7 @@ discard block |
||
942 | 942 | } elseif (!$this->groupManager->isAdmin($loggedInUser->getUID())) { |
943 | 943 | /** @var IGroup[] $subAdminGroups */ |
944 | 944 | $subAdminGroups = $subAdminManager->getSubAdminsGroups($loggedInUser); |
945 | - $subAdminGroups = array_map(function (IGroup $subAdminGroup) { |
|
945 | + $subAdminGroups = array_map(function(IGroup $subAdminGroup) { |
|
946 | 946 | return $subAdminGroup->getGID(); |
947 | 947 | }, $subAdminGroups); |
948 | 948 | $userGroups = $this->groupManager->getUserGroupIds($targetUser); |
@@ -979,7 +979,7 @@ discard block |
||
979 | 979 | } |
980 | 980 | // Check if group exists |
981 | 981 | if ($group === null) { |
982 | - throw new OCSException('Group does not exist', 102); |
|
982 | + throw new OCSException('Group does not exist', 102); |
|
983 | 983 | } |
984 | 984 | // Check if trying to make subadmin of admin group |
985 | 985 | if ($group->getGID() === 'admin') { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | public function register(IRegistrationContext $context): void { |
61 | 61 | $context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class); |
62 | 62 | |
63 | - $context->registerService(NewUserMailHelper::class, function (ContainerInterface $c) { |
|
63 | + $context->registerService(NewUserMailHelper::class, function(ContainerInterface $c) { |
|
64 | 64 | return new NewUserMailHelper( |
65 | 65 | $c->get(Defaults::class), |
66 | 66 | $c->get(IURLGenerator::class), |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | Util::getDefaultEmailAddress('no-reply') |
74 | 74 | ); |
75 | 75 | }); |
76 | - $context->registerService(ProvisioningApiMiddleware::class, function (ContainerInterface $c) { |
|
76 | + $context->registerService(ProvisioningApiMiddleware::class, function(ContainerInterface $c) { |
|
77 | 77 | $user = $c->get(IUserManager::class)->get($c->get('UserId')); |
78 | 78 | $isAdmin = false; |
79 | 79 | $isSubAdmin = false; |
@@ -6,37 +6,37 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitProvisioning_API |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\Provisioning_API\\' => 21, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\Provisioning_API\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/../lib', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
25 | - 'OCA\\Provisioning_API\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
26 | - 'OCA\\Provisioning_API\\Controller\\AUserData' => __DIR__ . '/..' . '/../lib/Controller/AUserData.php', |
|
27 | - 'OCA\\Provisioning_API\\Controller\\AppConfigController' => __DIR__ . '/..' . '/../lib/Controller/AppConfigController.php', |
|
28 | - 'OCA\\Provisioning_API\\Controller\\AppsController' => __DIR__ . '/..' . '/../lib/Controller/AppsController.php', |
|
29 | - 'OCA\\Provisioning_API\\Controller\\GroupsController' => __DIR__ . '/..' . '/../lib/Controller/GroupsController.php', |
|
30 | - 'OCA\\Provisioning_API\\Controller\\UsersController' => __DIR__ . '/..' . '/../lib/Controller/UsersController.php', |
|
31 | - 'OCA\\Provisioning_API\\FederatedShareProviderFactory' => __DIR__ . '/..' . '/../lib/FederatedShareProviderFactory.php', |
|
32 | - 'OCA\\Provisioning_API\\Listener\\UserDeletedListener' => __DIR__ . '/..' . '/../lib/Listener/UserDeletedListener.php', |
|
33 | - 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => __DIR__ . '/..' . '/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
34 | - 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
25 | + 'OCA\\Provisioning_API\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
26 | + 'OCA\\Provisioning_API\\Controller\\AUserData' => __DIR__.'/..'.'/../lib/Controller/AUserData.php', |
|
27 | + 'OCA\\Provisioning_API\\Controller\\AppConfigController' => __DIR__.'/..'.'/../lib/Controller/AppConfigController.php', |
|
28 | + 'OCA\\Provisioning_API\\Controller\\AppsController' => __DIR__.'/..'.'/../lib/Controller/AppsController.php', |
|
29 | + 'OCA\\Provisioning_API\\Controller\\GroupsController' => __DIR__.'/..'.'/../lib/Controller/GroupsController.php', |
|
30 | + 'OCA\\Provisioning_API\\Controller\\UsersController' => __DIR__.'/..'.'/../lib/Controller/UsersController.php', |
|
31 | + 'OCA\\Provisioning_API\\FederatedShareProviderFactory' => __DIR__.'/..'.'/../lib/FederatedShareProviderFactory.php', |
|
32 | + 'OCA\\Provisioning_API\\Listener\\UserDeletedListener' => __DIR__.'/..'.'/../lib/Listener/UserDeletedListener.php', |
|
33 | + 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => __DIR__.'/..'.'/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
34 | + 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
35 | 35 | ); |
36 | 36 | |
37 | 37 | public static function getInitializer(ClassLoader $loader) |
38 | 38 | { |
39 | - return \Closure::bind(function () use ($loader) { |
|
39 | + return \Closure::bind(function() use ($loader) { |
|
40 | 40 | $loader->prefixLengthsPsr4 = ComposerStaticInitProvisioning_API::$prefixLengthsPsr4; |
41 | 41 | $loader->prefixDirsPsr4 = ComposerStaticInitProvisioning_API::$prefixDirsPsr4; |
42 | 42 | $loader->classMap = ComposerStaticInitProvisioning_API::$classMap; |
@@ -6,15 +6,15 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
10 | - 'OCA\\Provisioning_API\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
11 | - 'OCA\\Provisioning_API\\Controller\\AUserData' => $baseDir . '/../lib/Controller/AUserData.php', |
|
12 | - 'OCA\\Provisioning_API\\Controller\\AppConfigController' => $baseDir . '/../lib/Controller/AppConfigController.php', |
|
13 | - 'OCA\\Provisioning_API\\Controller\\AppsController' => $baseDir . '/../lib/Controller/AppsController.php', |
|
14 | - 'OCA\\Provisioning_API\\Controller\\GroupsController' => $baseDir . '/../lib/Controller/GroupsController.php', |
|
15 | - 'OCA\\Provisioning_API\\Controller\\UsersController' => $baseDir . '/../lib/Controller/UsersController.php', |
|
16 | - 'OCA\\Provisioning_API\\FederatedShareProviderFactory' => $baseDir . '/../lib/FederatedShareProviderFactory.php', |
|
17 | - 'OCA\\Provisioning_API\\Listener\\UserDeletedListener' => $baseDir . '/../lib/Listener/UserDeletedListener.php', |
|
18 | - 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => $baseDir . '/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
19 | - 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => $baseDir . '/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
10 | + 'OCA\\Provisioning_API\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
11 | + 'OCA\\Provisioning_API\\Controller\\AUserData' => $baseDir.'/../lib/Controller/AUserData.php', |
|
12 | + 'OCA\\Provisioning_API\\Controller\\AppConfigController' => $baseDir.'/../lib/Controller/AppConfigController.php', |
|
13 | + 'OCA\\Provisioning_API\\Controller\\AppsController' => $baseDir.'/../lib/Controller/AppsController.php', |
|
14 | + 'OCA\\Provisioning_API\\Controller\\GroupsController' => $baseDir.'/../lib/Controller/GroupsController.php', |
|
15 | + 'OCA\\Provisioning_API\\Controller\\UsersController' => $baseDir.'/../lib/Controller/UsersController.php', |
|
16 | + 'OCA\\Provisioning_API\\FederatedShareProviderFactory' => $baseDir.'/../lib/FederatedShareProviderFactory.php', |
|
17 | + 'OCA\\Provisioning_API\\Listener\\UserDeletedListener' => $baseDir.'/../lib/Listener/UserDeletedListener.php', |
|
18 | + 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => $baseDir.'/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
19 | + 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => $baseDir.'/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
20 | 20 | ); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | if ($user !== null) { |
161 | 161 | return [ |
162 | - 'uri' => 'principals/users/' . $user->getUID() . '/' . $name, |
|
162 | + 'uri' => 'principals/users/'.$user->getUID().'/'.$name, |
|
163 | 163 | ]; |
164 | 164 | } |
165 | 165 | return null; |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | ?: $this->groupManager->get($name); |
191 | 191 | if ($group instanceof IGroup) { |
192 | 192 | return [ |
193 | - 'uri' => 'principals/groups/' . $name, |
|
193 | + 'uri' => 'principals/groups/'.$name, |
|
194 | 194 | '{DAV:}displayname' => $group->getDisplayName(), |
195 | 195 | ]; |
196 | 196 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | if ($this->hasGroups || $needGroups) { |
224 | 224 | $userGroups = $this->groupManager->getUserGroups($user); |
225 | 225 | foreach ($userGroups as $userGroup) { |
226 | - $groups[] = 'principals/groups/' . urlencode($userGroup->getGID()); |
|
226 | + $groups[] = 'principals/groups/'.urlencode($userGroup->getGID()); |
|
227 | 227 | } |
228 | 228 | } |
229 | 229 | |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | if (!$allowEnumeration) { |
295 | 295 | if ($allowEnumerationFullMatch) { |
296 | 296 | $users = $this->userManager->getByEmail($value); |
297 | - $users = \array_filter($users, static function (IUser $user) use ($value) { |
|
297 | + $users = \array_filter($users, static function(IUser $user) use ($value) { |
|
298 | 298 | return $user->getEMailAddress() === $value; |
299 | 299 | }); |
300 | 300 | } else { |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | } |
303 | 303 | } else { |
304 | 304 | $users = $this->userManager->getByEmail($value); |
305 | - $users = \array_filter($users, function (IUser $user) use ($currentUser, $value, $limitEnumerationPhone, $limitEnumerationGroup, $allowEnumerationFullMatch, $currentUserGroups) { |
|
305 | + $users = \array_filter($users, function(IUser $user) use ($currentUser, $value, $limitEnumerationPhone, $limitEnumerationGroup, $allowEnumerationFullMatch, $currentUserGroups) { |
|
306 | 306 | if ($allowEnumerationFullMatch && $user->getEMailAddress() === $value) { |
307 | 307 | return true; |
308 | 308 | } |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | }); |
327 | 327 | } |
328 | 328 | |
329 | - $results[] = array_reduce($users, function (array $carry, IUser $user) use ($restrictGroups) { |
|
329 | + $results[] = array_reduce($users, function(array $carry, IUser $user) use ($restrictGroups) { |
|
330 | 330 | // is sharing restricted to groups only? |
331 | 331 | if ($restrictGroups !== false) { |
332 | 332 | $userGroups = $this->groupManager->getUserGroupIds($user); |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | } |
336 | 336 | } |
337 | 337 | |
338 | - $carry[] = $this->principalPrefix . '/' . $user->getUID(); |
|
338 | + $carry[] = $this->principalPrefix.'/'.$user->getUID(); |
|
339 | 339 | return $carry; |
340 | 340 | }, []); |
341 | 341 | break; |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | if (!$allowEnumeration) { |
346 | 346 | if ($allowEnumerationFullMatch) { |
347 | 347 | $users = $this->userManager->searchDisplayName($value, $searchLimit); |
348 | - $users = \array_filter($users, static function (IUser $user) use ($value) { |
|
348 | + $users = \array_filter($users, static function(IUser $user) use ($value) { |
|
349 | 349 | return $user->getDisplayName() === $value; |
350 | 350 | }); |
351 | 351 | } else { |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | } |
354 | 354 | } else { |
355 | 355 | $users = $this->userManager->searchDisplayName($value, $searchLimit); |
356 | - $users = \array_filter($users, function (IUser $user) use ($currentUser, $value, $limitEnumerationPhone, $limitEnumerationGroup, $allowEnumerationFullMatch, $currentUserGroups) { |
|
356 | + $users = \array_filter($users, function(IUser $user) use ($currentUser, $value, $limitEnumerationPhone, $limitEnumerationGroup, $allowEnumerationFullMatch, $currentUserGroups) { |
|
357 | 357 | if ($allowEnumerationFullMatch && $user->getDisplayName() === $value) { |
358 | 358 | return true; |
359 | 359 | } |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | }); |
378 | 378 | } |
379 | 379 | |
380 | - $results[] = array_reduce($users, function (array $carry, IUser $user) use ($restrictGroups) { |
|
380 | + $results[] = array_reduce($users, function(array $carry, IUser $user) use ($restrictGroups) { |
|
381 | 381 | // is sharing restricted to groups only? |
382 | 382 | if ($restrictGroups !== false) { |
383 | 383 | $userGroups = $this->groupManager->getUserGroupIds($user); |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | } |
387 | 387 | } |
388 | 388 | |
389 | - $carry[] = $this->principalPrefix . '/' . $user->getUID(); |
|
389 | + $carry[] = $this->principalPrefix.'/'.$user->getUID(); |
|
390 | 390 | return $carry; |
391 | 391 | }, []); |
392 | 392 | break; |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | } |
483 | 483 | } |
484 | 484 | |
485 | - return $this->principalPrefix . '/' . $user->getUID(); |
|
485 | + return $this->principalPrefix.'/'.$user->getUID(); |
|
486 | 486 | } |
487 | 487 | } |
488 | 488 | if (substr($uri, 0, 10) === 'principal:') { |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | $userId = $user->getUID(); |
505 | 505 | $displayName = $user->getDisplayName(); |
506 | 506 | $principal = [ |
507 | - 'uri' => $this->principalPrefix . '/' . $userId, |
|
507 | + 'uri' => $this->principalPrefix.'/'.$userId, |
|
508 | 508 | '{DAV:}displayname' => is_null($displayName) ? $userId : $displayName, |
509 | 509 | '{urn:ietf:params:xml:ns:caldav}calendar-user-type' => 'INDIVIDUAL', |
510 | 510 | ]; |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | } |
544 | 544 | |
545 | 545 | $principal = [ |
546 | - 'uri' => 'principals/circles/' . $circleUniqueId, |
|
546 | + 'uri' => 'principals/circles/'.$circleUniqueId, |
|
547 | 547 | '{DAV:}displayname' => $circle->getName(), |
548 | 548 | ]; |
549 | 549 | |
@@ -573,9 +573,9 @@ discard block |
||
573 | 573 | |
574 | 574 | $circles = \OCA\Circles\Api\v1\Circles::joinedCircles($name, true); |
575 | 575 | |
576 | - $circles = array_map(function ($circle) { |
|
576 | + $circles = array_map(function($circle) { |
|
577 | 577 | /** @var \OCA\Circles\Model\Circle $circle */ |
578 | - return 'principals/circles/' . urlencode($circle->getUniqueId()); |
|
578 | + return 'principals/circles/'.urlencode($circle->getUniqueId()); |
|
579 | 579 | }, $circles); |
580 | 580 | |
581 | 581 | return $circles; |
@@ -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 class="<?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | value="1" <?php if ($_['allowLinks'] === 'yes') { |
71 | 71 | print_unescaped('checked="checked"'); |
72 | 72 | } ?> /> |
73 | - <label for="allowLinks"><?php p($l->t('Allow users to share via link'));?></label><br/> |
|
73 | + <label for="allowLinks"><?php p($l->t('Allow users to share via link')); ?></label><br/> |
|
74 | 74 | </p> |
75 | 75 | |
76 | 76 | <p id="publicLinkSettings" class="indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareAPIEnabled'] === 'no') { |
@@ -80,23 +80,23 @@ discard block |
||
80 | 80 | value="1" <?php if ($_['allowPublicUpload'] == 'yes') { |
81 | 81 | print_unescaped('checked="checked"'); |
82 | 82 | } ?> /> |
83 | - <label for="allowPublicUpload"><?php p($l->t('Allow public uploads'));?></label><br/> |
|
83 | + <label for="allowPublicUpload"><?php p($l->t('Allow public uploads')); ?></label><br/> |
|
84 | 84 | <input type="checkbox" name="shareapi_enable_link_password_by_default" id="enableLinkPasswordByDefault" class="checkbox" |
85 | 85 | value="1" <?php if ($_['enableLinkPasswordByDefault'] === 'yes') { |
86 | 86 | print_unescaped('checked="checked"'); |
87 | 87 | } ?> /> |
88 | - <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password'));?></label><br/> |
|
88 | + <label for="enableLinkPasswordByDefault"><?php p($l->t('Always ask for a password')); ?></label><br/> |
|
89 | 89 | <input type="checkbox" name="shareapi_enforce_links_password" id="enforceLinkPassword" class="checkbox" |
90 | 90 | value="1" <?php if ($_['enforceLinkPassword']) { |
91 | 91 | print_unescaped('checked="checked"'); |
92 | 92 | } ?> /> |
93 | - <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection'));?></label><br/> |
|
93 | + <label for="enforceLinkPassword"><?php p($l->t('Enforce password protection')); ?></label><br/> |
|
94 | 94 | |
95 | 95 | <input type="checkbox" name="shareapi_default_expire_date" id="shareapiDefaultExpireDate" class="checkbox" |
96 | 96 | value="1" <?php if ($_['shareDefaultExpireDateSet'] === 'yes') { |
97 | 97 | print_unescaped('checked="checked"'); |
98 | 98 | } ?> /> |
99 | - <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date for link shares'));?></label><br/> |
|
99 | + <label for="shareapiDefaultExpireDate"><?php p($l->t('Set default expiration date for link shares')); ?></label><br/> |
|
100 | 100 | |
101 | 101 | </p> |
102 | 102 | <p id="setDefaultExpireDate" class="double-indent <?php if ($_['allowLinks'] !== 'yes' || $_['shareDefaultExpireDateSet'] === 'no' || $_['shareAPIEnabled'] === 'no') { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | value="1" <?php if ($_['shareEnforceExpireDate'] === 'yes') { |
111 | 111 | print_unescaped('checked="checked"'); |
112 | 112 | } ?> /> |
113 | - <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date'));?></label><br/> |
|
113 | + <label for="shareapiEnforceExpireDate"><?php p($l->t('Enforce expiration date')); ?></label><br/> |
|
114 | 114 | </p> |
115 | 115 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
116 | 116 | p('hidden'); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | value="1" <?php if ($_['allowResharing'] === 'yes') { |
120 | 120 | print_unescaped('checked="checked"'); |
121 | 121 | } ?> /> |
122 | - <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> |
|
122 | + <label for="allowResharing"><?php p($l->t('Allow resharing')); ?></label><br/> |
|
123 | 123 | </p> |
124 | 124 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
125 | 125 | p('hidden'); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | value="1" <?php if ($_['allowGroupSharing'] === 'yes') { |
129 | 129 | print_unescaped('checked="checked"'); |
130 | 130 | } ?> /> |
131 | - <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br /> |
|
131 | + <label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups')); ?></label><br /> |
|
132 | 132 | </p> |
133 | 133 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
134 | 134 | p('hidden'); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | value="1" <?php if ($_['onlyShareWithGroupMembers']) { |
138 | 138 | print_unescaped('checked="checked"'); |
139 | 139 | } ?> /> |
140 | - <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups'));?></label><br/> |
|
140 | + <label for="onlyShareWithGroupMembers"><?php p($l->t('Restrict users to only share with users in their groups')); ?></label><br/> |
|
141 | 141 | </p> |
142 | 142 | <p class="<?php if ($_['shareAPIEnabled'] === 'no') { |
143 | 143 | p('hidden'); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | value="1" <?php if ($_['shareExcludeGroups']) { |
147 | 147 | print_unescaped('checked="checked"'); |
148 | 148 | } ?> /> |
149 | - <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing'));?></label><br/> |
|
149 | + <label for="shareapiExcludeGroups"><?php p($l->t('Exclude groups from sharing')); ?></label><br/> |
|
150 | 150 | </p> |
151 | 151 | <p id="selectExcludedGroups" class="indent <?php if (!$_['shareExcludeGroups'] || $_['shareAPIEnabled'] === 'no') { |
152 | 152 | p('hidden'); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | <?php if ($_['allowShareDialogUserEnumeration'] === 'yes') { |
164 | 164 | print_unescaped('checked="checked"'); |
165 | 165 | } ?> /> |
166 | - <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog'));?></label><br /> |
|
166 | + <label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog')); ?></label><br /> |
|
167 | 167 | </p> |
168 | 168 | |
169 | 169 | <p id="shareapi_restrict_user_enumeration_to_group_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | <?php if ($_['restrictUserEnumerationToGroup'] === 'yes') { |
174 | 174 | print_unescaped('checked="checked"'); |
175 | 175 | } ?> /> |
176 | - <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups'));?></label><br /> |
|
176 | + <label for="shareapi_restrict_user_enumeration_to_group"><?php p($l->t('Allow username autocompletion to users within the same groups')); ?></label><br /> |
|
177 | 177 | </p> |
178 | 178 | |
179 | 179 | <p id="shareapi_restrict_user_enumeration_to_phone_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
@@ -183,12 +183,12 @@ discard block |
||
183 | 183 | <?php if ($_['restrictUserEnumerationToPhone'] === 'yes') { |
184 | 184 | print_unescaped('checked="checked"'); |
185 | 185 | } ?> /> |
186 | - <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phonebook matches'));?></label><br /> |
|
186 | + <label for="shareapi_restrict_user_enumeration_to_phone"><?php p($l->t('Allow username autocompletion to users based on phonebook matches')); ?></label><br /> |
|
187 | 187 | </p> |
188 | 188 | <p id="shareapi_restrict_user_enumeration_combinewarning_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no' || $_['allowShareDialogUserEnumeration'] === 'no') { |
189 | 189 | p('hidden'); |
190 | 190 | }?>"> |
191 | - <em><?php p($l->t('If autocompletion "same group" and "phonebook matches" are enabled a match in either is enough to show the user.'));?></em><br /> |
|
191 | + <em><?php p($l->t('If autocompletion "same group" and "phonebook matches" are enabled a match in either is enough to show the user.')); ?></em><br /> |
|
192 | 192 | </p> |
193 | 193 | <p id="shareapi_restrict_user_enumeration_full_match_setting" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
194 | 194 | p('hidden'); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | <?php if ($_['restrictUserEnumerationFullMatch'] === 'yes') { |
198 | 198 | print_unescaped('checked="checked"'); |
199 | 199 | } ?> /> |
200 | - <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 /> |
|
200 | + <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 /> |
|
201 | 201 | </p> |
202 | 202 | |
203 | 203 | <p> |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | <?php if ($_['publicShareDisclaimerText'] !== null) { |
206 | 206 | print_unescaped('checked="checked"'); |
207 | 207 | } ?> /> |
208 | - <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> |
|
208 | + <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> |
|
209 | 209 | <span id="publicShareDisclaimerStatus" class="msg" style="display:none"></span> |
210 | 210 | <br/> |
211 | 211 | <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) { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } ?>><?php p($_['publicShareDisclaimerText']) ?></textarea> |
214 | 214 | </p> |
215 | 215 | |
216 | - <h3><?php p($l->t('Default share permissions'));?></h3> |
|
216 | + <h3><?php p($l->t('Default share permissions')); ?></h3> |
|
217 | 217 | <input type="hidden" name="shareapi_default_permissions" id="shareApiDefaultPermissions" class="checkbox" |
218 | 218 | value="<?php p($_['shareApiDefaultPermissions']) ?>" /> |
219 | 219 | <p id="shareApiDefaultPermissionsSection" class="indent <?php if ($_['shareAPIEnabled'] === 'no') { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | class="noautosave checkbox" value="<?php p($perm['value']) ?>" <?php if (($_['shareApiDefaultPermissions'] & $perm['value']) !== 0) { |
225 | 225 | print_unescaped('checked="checked"'); |
226 | 226 | } ?> /> |
227 | - <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']);?></label> |
|
227 | + <label for="shareapi_default_permission_<?php p($perm['id']) ?>"><?php p($perm['label']); ?></label> |
|
228 | 228 | <?php endforeach ?> |
229 | 229 | </p> |
230 | 230 | </div> |