From 3bc6474e2a198d4ea0110759a39ead131c1b89a7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 16 Nov 2016 11:47:38 +0100 Subject: [PATCH] Add server-side password protection for the web interface --- footer.php | 1 + header.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/footer.php b/footer.php index 2d3d6d61..975bcc10 100644 --- a/footer.php +++ b/footer.php @@ -1,3 +1,4 @@ + diff --git a/header.php b/header.php index bc31aa9e..62537afa 100644 --- a/header.php +++ b/header.php @@ -1,16 +1,29 @@ @@ -161,34 +174,34 @@
  • MAIN NAVIGATION
  • - + Main Page
  • - + Query Log
  • - + Whitelist
  • - + Blacklist
  • Disable'; + echo '
  • Disable
  • '; } else { - echo '
  • Enable
  • '; + echo '
  • Enable
  • '; } ?> @@ -205,3 +218,30 @@
    + + +
    + $value) { + $name = htmlspecialchars($name); + $value = htmlspecialchars($value); + echo ''; + } +?> + Password:   +
    +