xml so soooo oldschool. using json now like the cool kids do.
This commit is contained in:
parent
f14a62c875
commit
18216fe71f
13
status.php
13
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));
|
||||
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue