chore: drop unused ocs/providers.php
This appears to have been originally intended to support the providers list functionality mentioned in the OCS <=v1.7 spec. That is, appears to be an implementation of what was suggested be made available at `https://domain.tld/ocs/providers.xml`. However best as I can tell it never worked. It also doesn't appear in the v2.0 spec drafts. Signed-off-by: Josh <josh.t.richards@gmail.com>pull/54370/head
parent
43f6f9b25c
commit
de39c5122c
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
use OCP\IRequest;
|
||||
use OCP\Server;
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
require_once __DIR__ . '/../lib/versioncheck.php';
|
||||
require_once __DIR__ . '/../lib/base.php';
|
||||
|
||||
header('Content-type: application/xml');
|
||||
|
||||
$request = Server::get(IRequest::class);
|
||||
|
||||
$url = $request->getServerProtocol() . '://' . substr($request->getServerHost() . $request->getRequestUri(), 0, -17) . 'ocs/v1.php/';
|
||||
|
||||
$writer = new XMLWriter();
|
||||
$writer->openURI('php://output');
|
||||
$writer->startDocument('1.0', 'UTF-8');
|
||||
$writer->setIndent(true);
|
||||
$writer->startElement('providers');
|
||||
$writer->startElement('provider');
|
||||
$writer->writeElement('id', 'ownCloud');
|
||||
$writer->writeElement('location', $url);
|
||||
$writer->writeElement('name', 'ownCloud');
|
||||
$writer->writeElement('icon', '');
|
||||
$writer->writeElement('termsofuse', '');
|
||||
$writer->writeElement('register', '');
|
||||
$writer->startElement('services');
|
||||
$writer->startElement('config');
|
||||
$writer->writeAttribute('ocsversion', '1.7');
|
||||
$writer->endElement();
|
||||
$writer->startElement('activity');
|
||||
$writer->writeAttribute('ocsversion', '1.7');
|
||||
$writer->endElement();
|
||||
$writer->startElement('cloud');
|
||||
$writer->writeAttribute('ocsversion', '1.7');
|
||||
$writer->endElement();
|
||||
$writer->endElement();
|
||||
$writer->endElement();
|
||||
$writer->endDocument();
|
||||
$writer->flush();
|
||||
Loading…
Reference in New Issue