From: Frank Karlitschek Date: Wed, 28 Sep 2011 12:26:48 +0000 (+0200) Subject: xml so soooo oldschool. using json now like the cool kids do. X-Git-Tag: v3.0~101^2~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=18216fe71f778b299585de7cc42a568a5adcfa6c;p=nextcloud-server.git xml so soooo oldschool. using json now like the cool kids do. --- diff --git a/status.php b/status.php index 01b0d7244cb..94c8cfce842 100644 --- a/status.php +++ b/status.php @@ -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=' - - '.$installed.' - '.implode('.',OC_Util::getVersion()).' - ownCloud '.OC_Util::getVersionString().' - -'; - -echo($txt); - +echo(json_encode($values)); ?>