From b50f86feb3a257fdc853a47950547fbfc31f0d0b Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 10 Dec 2018 02:37:04 -0500 Subject: [PATCH] check against previous sha1s --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ca3bf4a..080d354 100755 --- a/index.php +++ b/index.php @@ -88,7 +88,8 @@ $parser = new Mni\FrontYAML\Parser();

~users~

- recent updates +

recent updates

+

if you're not listed here, make some changes to your page



    @@ -96,7 +97,9 @@ $parser = new Mni\FrontYAML\Parser(); foreach (glob("/home/*") as $user): if (!is_dir("$user/public_html") || (file_exists("$user/public_html/index.php") - && sha1_file("/etc/skel/public_html/index.php") == sha1_file("$user/public_html/index.php"))) + && in_array(sha1_file("$user/public_html/index.php"), + // these are the sha1s of two previous default pages + ["ca32714c33abb57430583ad07efec6097ae1a044", "f190ba3a1ed796a20bea83304e45e799420c0716"]))) continue; $user = basename($user); ?>