From 3f248d7e4b728a080e926427e0b54a60fed202bb Mon Sep 17 00:00:00 2001 From: asdf1899 Date: Sun, 2 Dec 2018 14:21:19 +0100 Subject: [PATCH] Add logging system --- .gitignore | 1 + core/checkPassword.php | 2 +- core/createPassword.php | 2 +- core/log.php | 17 +++++++++++++++++ stats.php | 2 +- 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 core/log.php diff --git a/.gitignore b/.gitignore index 585aa99..9d77e2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.csv +log.txt vigili.sql diff --git a/core/checkPassword.php b/core/checkPassword.php index f0bc9df..ac14478 100644 --- a/core/checkPassword.php +++ b/core/checkPassword.php @@ -31,7 +31,7 @@ $_SESSION['include'] = 'core/reports.php'; echo " "; } if (!$esistenzaUtente){ diff --git a/core/createPassword.php b/core/createPassword.php index d5df26a..bc6c4ba 100644 --- a/core/createPassword.php +++ b/core/createPassword.php @@ -49,7 +49,7 @@ function validaPassword() { $_SESSION['include'] = 'core/reports.php'; echo " "; } diff --git a/core/log.php b/core/log.php new file mode 100644 index 0000000..de02153 --- /dev/null +++ b/core/log.php @@ -0,0 +1,17 @@ + diff --git a/stats.php b/stats.php index 466a093..e309bee 100644 --- a/stats.php +++ b/stats.php @@ -326,7 +326,7 @@ function updateYears() { }else{ $inter = "interventi"; } - print_r($interventi); + $tipoIntervento = $interventi[$i][0]; $totInterventi = $interventi[$i][1]; $tuttiInterventi .= "$tipoIntervento: $totInterventi $inter
";