b2evolution PHP Cross Reference Blogging Systems

Source: /xmlsrv/rsd.php - 72 lines - 2430 bytes - Text - Print

Description: RSD Really Simple Discoverability

   1  <?php
   2  /**
   3   * RSD Really Simple Discoverability
   4   *
   5   * b2evolution - {@link http://b2evolution.net/}
   6   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
   7   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}
   8   *
   9   * @todo fp> do we want to restrict API definitions to a specific blog with blogID="" ?
  10   *
  11   * @see http://archipelago.phrasewise.com/rsd
  12   * @see http://en.wikipedia.org/wiki/Really_Simple_Discovery
  13   * @see http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
  14   *
  15   * @package xmlsrv
  16   *
  17   * @version $Id: rsd.php 6136 2014-03-08 07:59:48Z manuel $
  18   */
  19  header('Content-type: text/xml; charset=UTF-8', true);
  20  
  21  require_once dirname(__FILE__).'/../conf/_config.php';
  22  
  23  require_once $inc_path.'_main.inc.php';
  24  
  25  param( 'blog', 'integer', NULL );
  26  
  27  echo '<?xml version="1.0" encoding="UTF-8"?'.'>';
  28  ?>
  29  <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
  30      <service>
  31        <engineName>b2evolution</engineName>
  32        <engineLink>http://b2evolution.net/</engineLink>
  33        <homePageLink><?php echo $baseurl; ?></homePageLink>
  34        <apis>
  35          <api name="WordPress" preferred="true" apiLink="<?php echo $xmlsrv_url; ?>xmlrpc.php"<?php
  36              if( !empty($blog) ) { echo ' blogID="'.$blog.'"'; }
  37              ?>>
  38                  <settings>
  39                      <docs>https://codex.wordpress.org/XML-RPC_wp</docs>
  40                  </settings>
  41              </api>
  42          <api name="MetaWeblog" preferred="false" apiLink="<?php echo $xmlsrv_url; ?>xmlrpc.php"<?php
  43              if( !empty($blog) ) { echo ' blogID="'.$blog.'"'; }
  44              ?>>
  45                  <settings>
  46                      <docs>http://b2evolution.net/man/metaweblog-api</docs>
  47                  </settings>
  48              </api>
  49          <api name="MovableType" preferred="false" apiLink="<?php echo $xmlsrv_url; ?>xmlrpc.php"<?php
  50              if( !empty($blog) ) { echo ' blogID="'.$blog.'"'; }
  51              ?>>
  52                  <settings>
  53                      <docs>http://b2evolution.net/man/movabletype-api</docs>
  54                  </settings>
  55              </api>
  56          <api name="Blogger" preferred="false" apiLink="<?php echo $xmlsrv_url; ?>xmlrpc.php"<?php
  57              if( !empty($blog) ) { echo ' blogID="'.$blog.'"'; }
  58              ?>>
  59                  <settings>
  60                      <docs>http://b2evolution.net/man/blogger-api</docs>
  61                  </settings>
  62              </api>
  63          <api name="b2" preferred="false" apiLink="<?php echo $xmlsrv_url; ?>xmlrpc.php"<?php
  64              if( !empty($blog) ) { echo ' blogID="'.$blog.'"'; }
  65              ?>>
  66                  <settings>
  67                      <docs>http://b2evolution.net/man/b2-api</docs>
  68                  </settings>
  69              </api>
  70        </apis>
  71      </service>
  72  </rsd>

title

Description

title

Description

title

Description

title

title

Body