From 84db04e51e0a8dd6e5d01eef95cb76b573335cff Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 23 Sep 2017 12:44:07 +0200 Subject: [PATCH] Show time since last update of gravity.list when hovering the "Domains on Blocklist" on the dashboard Signed-off-by: DL6ER --- index.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index b97cd0bb..ee596e57 100644 --- a/index.php +++ b/index.php @@ -48,10 +48,27 @@ +d > 1) + $gravitydate = $gravitydiff->format("Blocking list updated %a days, %H:%I ago"); + elseif($gravitydiff->d == 1) + $gravitydate = $gravitydiff->format("Blocking list updated one day, %H:%I ago"); + else + $gravitydate = $gravitydiff->format("Blocking list updated %H:%I ago"); +} +else +{ + $gravitydate = "Blocking list not found"; +} +?>
-
+

Domains on Blocklist

---