settings-admin.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.')); ?></p>
  16. <p>
  17. <input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" class="checkbox"
  18. value="1" <?php if ($_['outgoingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
  19. <label for="outgoingServer2serverShareEnabled">
  20. <?php p($l->t('Allow users on this server to send shares to other servers'));?>
  21. </label>
  22. </p>
  23. <p>
  24. <input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" class="checkbox"
  25. value="1" <?php if ($_['incomingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
  26. <label for="incomingServer2serverShareEnabled">
  27. <?php p($l->t('Allow users on this server to receive shares from other servers'));?>
  28. </label><br/>
  29. </p>
  30. <?php if($_['federatedGroupSharingSupported']): ?>
  31. <p>
  32. <input type="checkbox" name="outgoing_server2server_group_share_enabled" id="outgoingServer2serverGroupShareEnabled" class="checkbox"
  33. value="1" <?php if ($_['outgoingServer2serverGroupShareEnabled']) print_unescaped('checked="checked"'); ?> />
  34. <label for="outgoingServer2serverGroupShareEnabled">
  35. <?php p($l->t('Allow users on this server to send shares to groups on other servers'));?>
  36. </label>
  37. </p>
  38. <p>
  39. <input type="checkbox" name="incoming_server2server_group_share_enabled" id="incomingServer2serverGroupShareEnabled" class="checkbox"
  40. value="1" <?php if ($_['incomingServer2serverGroupShareEnabled']) print_unescaped('checked="checked"'); ?> />
  41. <label for="incomingServer2serverGroupShareEnabled">
  42. <?php p($l->t('Allow users on this server to receive group shares from other servers'));?>
  43. </label><br/>
  44. </p>
  45. <?php endif; ?>
  46. <p>
  47. <input type="checkbox" name="lookupServerEnabled" id="lookupServerEnabled" class="checkbox"
  48. value="1" <?php if ($_['lookupServerEnabled']) print_unescaped('checked="checked"'); ?> />
  49. <label for="lookupServerEnabled">
  50. <?php p($l->t('Search global and public address book for users'));?>
  51. </label><br/>
  52. </p>
  53. <p>
  54. <input type="checkbox" name="lookupServerUploadEnabled" id="lookupServerUploadEnabled" class="checkbox"
  55. value="1" <?php if ($_['lookupServerUploadEnabled']) print_unescaped('checked="checked"'); ?> />
  56. <label for="lookupServerUploadEnabled">
  57. <?php p($l->t('Allow users to publish their data to a global and public address book'));?>
  58. </label><br/>
  59. </p>
  60. </div>
  61. <?php endif; ?>