settings-admin.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /** @var \OCP\IL10N $l */
  3. /** @var array $_ */
  4. script('federatedfilesharing', 'settings-admin');
  5. ?>
  6. <?php if($_['internalOnly'] === false): ?>
  7. <div id="fileSharingSettings" class="section">
  8. <h2>
  9. <?php p($l->t('Federated Cloud Sharing'));?>
  10. <a target="_blank" rel="noreferrer noopener" class="icon-info svg"
  11. title="<?php p($l->t('Open documentation'));?>"
  12. href="<?php p(link_to_docs('admin-sharing-federated')); ?>"></a>
  13. </h2>
  14. <p class="settings-hint"><?php p($l->t('Adjust how people can share between servers.')); ?></p>
  15. <p>
  16. <input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" class="checkbox"
  17. value="1" <?php if ($_['outgoingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
  18. <label for="outgoingServer2serverShareEnabled">
  19. <?php p($l->t('Allow users on this server to send shares to other servers'));?>
  20. </label>
  21. </p>
  22. <p>
  23. <input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" class="checkbox"
  24. value="1" <?php if ($_['incomingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
  25. <label for="incomingServer2serverShareEnabled">
  26. <?php p($l->t('Allow users on this server to receive shares from other servers'));?>
  27. </label><br/>
  28. </p>
  29. <p>
  30. <input type="checkbox" name="lookupServerEnabled" id="lookupServerEnabled" class="checkbox"
  31. value="1" <?php if ($_['lookupServerEnabled']) print_unescaped('checked="checked"'); ?> />
  32. <label for="lookupServerEnabled">
  33. <?php p($l->t('Search global and public address book for users'));?>
  34. </label><br/>
  35. </p>
  36. <p>
  37. <input type="checkbox" name="lookupServerUploadEnabled" id="lookupServerUploadEnabled" class="checkbox"
  38. value="1" <?php if ($_['lookupServerUploadEnabled']) print_unescaped('checked="checked"'); ?> />
  39. <label for="lookupServerUploadEnabled">
  40. <?php p($l->t('Allow users to publish their data to a global and public address book'));?>
  41. </label><br/>
  42. </p>
  43. </div>
  44. <?php endif; ?>