settings.php 384 B

12345678910
  1. <?php
  2. OCP\User::checkAdminUser();
  3. OCP\Util::addscript('files_sharing', 'settings');
  4. $tmpl = new OCP\Template('files_sharing', 'settings');
  5. $tmpl->assign('allowResharing', OCP\Config::getAppValue('files_sharing', 'resharing', 'yes'));
  6. $tmpl->assign('allowSharingWithEveryone', OCP\Config::getAppValue('files_sharing', 'allowSharingWithEveryone', 'no'));
  7. return $tmpl->fetchPage();
  8. ?>