mirror of
https://github.com/ThunixdotNet/www.git
synced 2026-11-05 10:35:38 +00:00
Print href only for updated contents
This commit is contained in:
1 parent
b8545fb767
commit
eb8b5b6f74
1 file changed
+1
-1
+1
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user