]> source.dussan.org Git - nextcloud-server.git/commitdiff
xml so soooo oldschool. using json now like the cool kids do.
authorFrank Karlitschek <karlitschek@kde.org>
Wed, 28 Sep 2011 12:26:48 +0000 (14:26 +0200)
committerFrank Karlitschek <karlitschek@kde.org>
Wed, 28 Sep 2011 12:26:48 +0000 (14:26 +0200)
status.php

index 01b0d7244cbebab76b86ef77e40ec1e4ace0e8ff..94c8cfce8423314f9ac437d82f223d3fca9f633e 100644 (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));
 
 
 ?>