settings-admin.php 605 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Copyright (c) 2011 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. \OC_Util::checkAdminUser();
  9. \OCP\Util::addScript('files_sharing', 'settings-admin');
  10. $tmpl = new OCP\Template('files_sharing', 'settings-admin');
  11. $tmpl->assign('outgoingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isOutgoingServer2serverShareEnabled());
  12. $tmpl->assign('incomingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled());
  13. return $tmpl->fetchPage();