From 251f01451dc80c704515172721a57755ab16fcc2 Mon Sep 17 00:00:00 2001 From: Tim Krehan Date: Sat, 27 Oct 2018 18:32:43 +0200 Subject: [PATCH] added settings page --- bin/nav.js | 3 +++ cont/settings.php | 0 index.php | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 cont/settings.php diff --git a/bin/nav.js b/bin/nav.js index 157dc97..94b4461 100644 --- a/bin/nav.js +++ b/bin/nav.js @@ -15,4 +15,7 @@ $(document).ready(function(){ $("#logout").click(function(){ window.location.href = "/php/logout.php"; }); + $("#settings").click(function(){ + window.location.href = "/settings"; + }); }); diff --git a/cont/settings.php b/cont/settings.php new file mode 100644 index 0000000..e69de29 diff --git a/index.php b/index.php index 0f7a572..6cfadee 100644 --- a/index.php +++ b/index.php @@ -44,6 +44,10 @@ include $_SESSION["docroot"].'/cont/list.php'; break; + case "settings": + include $_SESSION["docroot"].'/cont/settings.php'; + break; + case "recipes": include $_SESSION["docroot"].'/cont/recipes.php'; break;