Location: PHPKode > projects > Uchome and Discuz > xmlrpc.php
<?php
/*
	[UCenter Home] (C) 2007-2008 Comsenz Inc.
	$Id: xmlrpc.php 12681 2009-07-15 05:24:47Z liguode $
*/

include_once('./common.php');
include_once(S_ROOT.'./source/class_xmlrpc.php');

if(empty($_SCONFIG['openxmlrpc'])) {
	showmessage('no_privilege');
}

$siteurl = getsiteurl();

if(isset($_GET['rsd'])) {
	obclean();
	header("Content-type: text/xml, charset=utf-8", true);
	echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
	<service>
		<engineName>UCenter Home</engineName>
		<engineLink>http://u.discuz.net/</engineLink>
		<homePageLink><?php echo $siteurl; ?></homePageLink>
		<apis>
			<api name="MetaWeblog" blogID="1" preferred="false" apiLink=" <?php echo $siteurl; ?>xmlrpc.php" />
			<api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo $siteurl; ?>xmlrpc.php" />
			<api name="Blogger" blogID="1" preferred="false" apiLink=" <?php echo $siteurl; ?>xmlrpc.php" />
		</apis>
	</service>
</rsd>
<?php

} else {
	$xmlrpc = xmlrpc::xmlrpcSet();
	$data = $xmlrpc->xmlrpcServer();
}

?>
Return current item: Uchome and Discuz