remote.php 536 B

123456789101112131415161718192021
  1. <?php
  2. use OCA\DAV\Server;
  3. /**
  4. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  6. * SPDX-License-Identifier: AGPL-3.0-only
  7. */
  8. // no php execution timeout for webdav
  9. if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
  10. @set_time_limit(0);
  11. }
  12. ignore_user_abort(true);
  13. // Turn off output buffering to prevent memory problems
  14. \OC_Util::obEnd();
  15. $request = \OC::$server->getRequest();
  16. $server = new Server($request, $baseuri);
  17. $server->exec();