mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-01-24 07:10:18 +00:00
Not always contents are listed just with index.html or index.php
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user