' .
t('This page provides information about related projects and websites that are currently known to this system. These are a small fraction of the thousands of affiliated fediverse websites.') . '
' . EOL;
$ret = z_fetch_url($url);
if ($ret['success']) {
$j = json_decode($ret['body'],true);
if ($j) {
if ($j['sites']) {
$projects = $this->sort_sites($j['sites']);
foreach ($projects as $p => $v) {
if (! $p) {
continue;
}
$o .= '' . ucfirst($p) . '' . EOL;
$o .= '' . t('URL') . ' | ' . t('Access Type') . ' | ' . t('Registration Policy') . ' | ' . t('Software') . ' | '; $o .= '
' . (($disabled) ? '' : ' ') . $host . (($disabled) ? '' : '') . $location . ' | ' . $jj['access'] . ' | ' . (($disabled) ? ' ' : $jj['register']) . ' | ' . ucwords($jj['project']) . (($jj['version']) ? ' ' . $jj['version'] : '') . ' | '; $o .= '
'; } } $o .= '