From 860d816031d7d96255229080c091288bf4cdcbec Mon Sep 17 00:00:00 2001 From: Naglfar Date: Thu, 18 Nov 2021 13:36:15 +0100 Subject: [PATCH 1/3] Print href only for updated contents --- includes/users.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/includes/users.php b/includes/users.php index c58a0ae..51b723c 100644 --- a/includes/users.php +++ b/includes/users.php @@ -1,13 +1,16 @@ "; print " From b8545fb767748d696fe207abc27322cc1111ceee Mon Sep 17 00:00:00 2001 From: Naglfar Date: Thu, 18 Nov 2021 17:13:06 +0100 Subject: [PATCH 2/3] There is an index.html already --- includes/users.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/includes/users.php b/includes/users.php index 51b723c..5da9ff5 100644 --- a/includes/users.php +++ b/includes/users.php @@ -4,14 +4,13 @@ print ""; print " "; From eb8b5b6f7464e52acea5a1dbdac3fbf865402aa0 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Tue, 14 Dec 2021 10:01:53 +0100 Subject: [PATCH 3/3] 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";