Now users without sites will not have hyperlinks.

Now users without sites will not have hyperlinks.
This commit is contained in:
gtlsgamr 2022-06-27 06:26:39 -04:00
parent c9396b8bec
commit 1f5c056a45
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@
$online='true';
$on++;
}
$list .= ' <li online="' . $online . '">' . "<a href='https://".$subdir".vern.cc'>".$subdir."</a>" . "</li>\n";
$list .= ' <li online="' . $online . '">';
if (is_readable('/sshfs/home/' . $subdir . '/public_html/index.html'))
$list .= "<a href='//{$subdir}.vern.cc'>{$subdir}</a>";
else $list .= $subdir;
$list .= "</li>\n";
$total++;
}
}