/** * Serves a WebDAV request. */ public function serveRequest() { // die quickly if plugin is deactivated if (!self::_isActive()) { $this->writelog(__METHOD__ . ' WebDAV disabled. Aborting'); $this->http_status('403 Forbidden'); echo '<html><body><h1>Sorry</h1>' . '<p><b>Please enable the WebDAV plugin in the ILIAS Administration panel.</b></p>' . '<p>You can only access this page, if WebDAV is enabled on this server.</p>' . '</body></html>'; return; } try { $start = time(); $this->writelog('serveRequest():' . $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['PATH_INFO'] . ' ...'); parent::serveRequest(); $end = time(); $this->writelog('serveRequest():' . $_SERVER['REQUEST_METHOD'] . ' done status=' . $this->_http_status . ' elapsed=' . ($end - $start)); $this->writelog('---'); } catch (Exception $e) { $this->writelog('serveRequest():' . $_SERVER['REQUEST_METHOD'] . ' caught exception: ' . $e->getMessage() . '\\n' . $e->getTraceAsString()); } }