From eb8b5b6f7464e52acea5a1dbdac3fbf865402aa0 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Tue, 14 Dec 2021 10:01:53 +0100 Subject: [PATCH] Print href only for updated contents --- includes/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/users.php b/includes/users.php index 5da9ff5..9d072ec 100644 --- a/includes/users.php +++ b/includes/users.php @@ -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"
  • ~$user
  • \n"; else print"
  • ~$user
  • \n";