From dbfc900e124832c2d283532229e012375bc0deec Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Wed, 10 Mar 2021 07:01:12 +0100 Subject: [PATCH] protection: handle login check earlier to protect other endpoints --- admin/diskusage.php | 22 +++++++++++------ admin/index.php | 25 ++++++++++--------- index.php | 58 ++++++++++++++++++++++++--------------------- livechroma.php | 47 ++++++++++++++++++++---------------- 4 files changed, 86 insertions(+), 66 deletions(-) diff --git a/admin/diskusage.php b/admin/diskusage.php index f4d4a6295..6ae3f2d60 100644 --- a/admin/diskusage.php +++ b/admin/diskusage.php @@ -1,8 +1,21 @@ @@ -38,7 +51,6 @@

Photobooth

-
diff --git a/admin/index.php b/admin/index.php index 23b4271fe..30a45f0bd 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,7 +1,19 @@ @@ -26,10 +38,6 @@ '; } } - else - { - header("location: ../login"); - exit; - } ?>
diff --git a/index.php b/index.php index d1f6545d4..9d6cb9070 100644 --- a/index.php +++ b/index.php @@ -1,31 +1,41 @@ @@ -65,8 +75,6 @@
- - @@ -184,10 +192,6 @@
adminsettings
-
diff --git a/livechroma.php b/livechroma.php index 3a86047c6..8f6b481bd 100644 --- a/livechroma.php +++ b/livechroma.php @@ -1,24 +1,34 @@ @@ -53,7 +63,6 @@
-
@@ -140,10 +149,6 @@