Print href only for updated contents

This commit is contained in:
Blade of Darkness 2021-12-14 10:01:53 +01:00
parent b8545fb767
commit eb8b5b6f74
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ foreach (glob("/home/*") as $userpath):
if (is_dir("$userpath/public_html"))
{
$user = basename($userpath);
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html"))
if(sha1_file($html_skel) == sha1_file("$userpath/public_html/index.html") || count(scandir("$userpath/public_html")) == 2)
print"<li>~$user</li>\n";
else
print"<li><a href='$site_root/~$user/'>~$user</a></li>\n";