mirror of https://github.com/ThunixdotNet/www.git
Not always contents are listed just with index.html or index.php
This commit is contained in:
parent
55f641afc4
commit
16f9b6e4a6
|
@ -3,7 +3,6 @@ print "<!-- Begin autogen userdir list -->";
|
||||||
print "<ul style='list-style: none; margin-left: -40px;'>";
|
print "<ul style='list-style: none; margin-left: -40px;'>";
|
||||||
foreach (glob("/home/*") as $user):
|
foreach (glob("/home/*") as $user):
|
||||||
if (is_dir($user . "/public_html"))
|
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"))
|
if (!file_exists($user . "/public_html/coming_soon"))
|
||||||
{
|
{
|
||||||
$user = basename($user);
|
$user = basename($user);
|
||||||
|
|
Loading…
Reference in New Issue