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));
?>