xml so soooo oldschool. using json now like the cool kids do.
This commit is contained in:
+2
-11
@@ -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));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user