aboutsummaryrefslogtreecommitdiffstats
path: root/status.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2011-09-28 14:26:48 +0200
committerFrank Karlitschek <karlitschek@kde.org>2011-09-28 14:26:48 +0200
commit18216fe71f778b299585de7cc42a568a5adcfa6c (patch)
tree944c10105b14b738970c86e617c3c55dac8944da /status.php
parentf14a62c87567150f8861a9b22efdc158af62148e (diff)
downloadnextcloud-server-18216fe71f778b299585de7cc42a568a5adcfa6c.tar.gz
nextcloud-server-18216fe71f778b299585de7cc42a568a5adcfa6c.zip
xml so soooo oldschool. using json now like the cool kids do.
Diffstat (limited to 'status.php')
-rw-r--r--status.php13
1 files changed, 2 insertions, 11 deletions
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='
-<owncloud>
- <installed>'.$installed.'</installed>
- <version>'.implode('.',OC_Util::getVersion()).'</version>
- <versionstring>ownCloud '.OC_Util::getVersionString().'</versionstring>
-</owncloud>
-';
-
-echo($txt);
-
+echo(json_encode($values));
?>