Not always contents are listed just with index.html or index.php

This commit is contained in:
Blade of Darkness 2021-06-18 10:38:26 +02:00
parent 55f641afc4
commit 16f9b6e4a6
1 changed files with 0 additions and 1 deletions

View File

@ -3,7 +3,6 @@ print "<!-- Begin autogen userdir list -->";
print "<ul style='list-style: none; margin-left: -40px;'>";
foreach (glob("/home/*") as $user):
if (is_dir($user . "/public_html"))
if (file_exists($user . "/public_html/index.html") || file_exists($user . "/public_html/index.php"))
if (!file_exists($user . "/public_html/coming_soon"))
{
$user = basename($user);