From 0e235682d117563c76b6a0c74a2ec459d2f5f954 Mon Sep 17 00:00:00 2001 From: /jedi/ Date: Thu, 27 Dec 2018 20:52:35 +0100 Subject: [PATCH] use hash --- index.php | 3 +++ templates/dashboard.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 939c034..cf56d39 100644 --- a/index.php +++ b/index.php @@ -71,6 +71,9 @@ function get_stats(){ return $ret; } +if(file_exists("currentgithash")) + $hash = file_get_contents("currentgithash"); + $page = isset($_GET["page"])?$_GET["page"]:"dashboard"; if (!auth()) { diff --git a/templates/dashboard.php b/templates/dashboard.php index e5f9278..5063523 100644 --- a/templates/dashboard.php +++ b/templates/dashboard.php @@ -16,7 +16,7 @@ $stats = get_stats();