2019-05-04 15:37:32 -04:00
|
|
|
<?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 04:09:08 -04:00
|
|
|
header ('Content-Type: text/xml');
|
2019-05-04 15:37:32 -04:00
|
|
|
$tpl = Renderer::getMarkupTemplate('rsd.tpl');
|
2019-05-05 04:09:08 -04:00
|
|
|
echo Renderer::replaceMacros($tpl);
|
2019-05-04 15:37:32 -04:00
|
|
|
exit();
|
|
|
|
}
|
|
|
|
}
|