xml so soooo oldschool. using json now like the cool kids do.

This commit is contained in:
Frank Karlitschek 2011-09-28 14:26:48 +02:00
parent f14a62c875
commit 18216fe71f
1 changed files with 2 additions and 11 deletions

View File

@ -26,18 +26,9 @@ $RUNTIME_NOAPPS = TRUE; //no apps, yet
require_once('lib/base.php');
if(OC_Config::getValue('installed')==1) $installed='true'; else $installed='false';
$values=array('installed'=>$installed,'version'=>implode('.',OC_Util::getVersion()),'versionstring'=>OC_Util::getVersionString());
$txt='
<owncloud>
<installed>'.$installed.'</installed>
<version>'.implode('.',OC_Util::getVersion()).'</version>
<versionstring>ownCloud '.OC_Util::getVersionString().'</versionstring>
</owncloud>
';
echo($txt);
echo(json_encode($values));
?>