friendica_2021-01/src/Module/ReallySimpleDiscovery.php

22 lines
396 B
PHP
Raw Normal View History

<?php
namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Renderer;
/**
* Prints the rsd.xml
* @see http://danielberlinger.github.io/rsd/
*/
class ReallySimpleDiscovery extends BaseModule
{
public static function rawContent()
{
2019-05-05 10:09:08 +02:00
header ('Content-Type: text/xml');
$tpl = Renderer::getMarkupTemplate('rsd.tpl');
2019-05-05 10:09:08 +02:00
echo Renderer::replaceMacros($tpl);
exit();
}
}