Merge pull request 'Show usersite links for the users.php page' (#1) from gtlsgamr/website:gtlsgamr-patch-1 into master

Reviewed-on: #1
This commit is contained in:
Skylar "The Cobra" Widulski 2022-06-27 06:56:03 -04:00
commit 8e43ecfef0
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@
$online='true';
$on++;
}
$list .= ' <li online="' . $online . '">' . $subdir . "</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++;
}
}