settings-admin.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /** @var \OCP\IL10N $l */
  3. /** @var array $_ */
  4. script('federatedfilesharing', 'settings-admin');
  5. style('federatedfilesharing', 'settings-admin');
  6. ?>
  7. <?php if ($_['internalOnly'] === false): ?>
  8. <div id="fileSharingSettings" class="section">
  9. <h2>
  10. <?php p($l->t('Federated Cloud Sharing'));?>
  11. </h2>
  12. <a target="_blank" rel="noreferrer noopener" class="icon-info svg"
  13. title="<?php p($l->t('Open documentation'));?>"
  14. href="<?php p(link_to_docs('admin-sharing-federated')); ?>"></a>
  15. <p class="settings-hint"><?php p($l->t('Adjust how people can share between servers. This includes shares between users on this server as well if they are using federated sharing.')); ?></p>
  16. <p>
  17. <input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" class="checkbox"
  18. value="1" <?php if ($_['outgoingServer2serverShareEnabled']) {
  19. print_unescaped('checked="checked"');
  20. } ?> />
  21. <label for="outgoingServer2serverShareEnabled">
  22. <?php p($l->t('Allow users on this server to send shares to other servers (this option also allows WebDAV access to public shares)'));?>
  23. </label>
  24. </p>
  25. <p>
  26. <input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" class="checkbox"
  27. value="1" <?php if ($_['incomingServer2serverShareEnabled']) {
  28. print_unescaped('checked="checked"');
  29. } ?> />
  30. <label for="incomingServer2serverShareEnabled">
  31. <?php p($l->t('Allow users on this server to receive shares from other servers'));?>
  32. </label><br/>
  33. </p>
  34. <?php if ($_['federatedGroupSharingSupported']): ?>
  35. <p>
  36. <input type="checkbox" name="outgoing_server2server_group_share_enabled" id="outgoingServer2serverGroupShareEnabled" class="checkbox"
  37. value="1" <?php if ($_['outgoingServer2serverGroupShareEnabled']) {
  38. print_unescaped('checked="checked"');
  39. } ?> />
  40. <label for="outgoingServer2serverGroupShareEnabled">
  41. <?php p($l->t('Allow users on this server to send shares to groups on other servers'));?>
  42. </label>
  43. </p>
  44. <p>
  45. <input type="checkbox" name="incoming_server2server_group_share_enabled" id="incomingServer2serverGroupShareEnabled" class="checkbox"
  46. value="1" <?php if ($_['incomingServer2serverGroupShareEnabled']) {
  47. print_unescaped('checked="checked"');
  48. } ?> />
  49. <label for="incomingServer2serverGroupShareEnabled">
  50. <?php p($l->t('Allow users on this server to receive group shares from other servers'));?>
  51. </label><br/>
  52. </p>
  53. <?php endif; ?>
  54. <p>
  55. <input type="checkbox" name="lookupServerEnabled" id="lookupServerEnabled" class="checkbox"
  56. value="1" <?php if ($_['lookupServerEnabled']) {
  57. print_unescaped('checked="checked"');
  58. } ?> />
  59. <label for="lookupServerEnabled">
  60. <?php p($l->t('Search global and public address book for users'));?>
  61. </label><br/>
  62. </p>
  63. <p>
  64. <input type="checkbox" name="lookupServerUploadEnabled" id="lookupServerUploadEnabled" class="checkbox"
  65. value="1" <?php if ($_['lookupServerUploadEnabled']) {
  66. print_unescaped('checked="checked"');
  67. } ?> />
  68. <label for="lookupServerUploadEnabled">
  69. <?php p($l->t('Allow users to publish their data to a global and public address book'));?>
  70. </label><br/>
  71. </p>
  72. </div>
  73. <?php endif; ?>