}
if (!$failure) {
- // Test for Hubzilla, Redmatrix or Friendica
+ // Test for Hubzilla and Red
$serverret = z_fetch_url($server_url."/siteinfo.json");
if ($serverret["success"]) {
$data = json_decode($serverret["body"]);
- if(isset($data->url)) {
+ if (isset($data->url)) {
$platform = $data->platform;
$version = $data->version;
$network = NETWORK_DIASPORA;
$register_policy = REGISTER_CLOSED;
break;
}
- }
- else {
+ } else {
+ // Test for Hubzilla, Redmatrix or Friendica
$serverret = z_fetch_url($server_url."/api/statusnet/config.json");
if ($serverret["success"]) {
$data = json_decode($serverret["body"]);