From f3f98c25d45786eebc4f7bf9bdb2c5e36d8ca8c0 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 24 Jan 2022 11:46:44 +0100 Subject: [PATCH] Add logout confirmation --- app/view/confirm_logout.php | 6 ++++++ app/view/template/header.php | 5 +++-- public/confirm_logout.php | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 app/view/confirm_logout.php create mode 100644 public/confirm_logout.php diff --git a/app/view/confirm_logout.php b/app/view/confirm_logout.php new file mode 100644 index 0000000..d023094 --- /dev/null +++ b/app/view/confirm_logout.php @@ -0,0 +1,6 @@ +

Bekreft avlogging

+

Er du sikker på at du vil logge av?

+ +
+ +
\ No newline at end of file diff --git a/app/view/template/header.php b/app/view/template/header.php index 4cffe61..ae98c8d 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -20,7 +20,7 @@ user->loggedIn): ?> user->username)?> - Logg ut + Logg ut Ikke pålogget Logg inn @@ -38,12 +38,13 @@
  • Forside
  • user->loggedIn): ?> -
  • Logg ut
  • +
  • Logg ut
  • Logg inn
  • Eksempel
  • +
  • Simulator
  • diff --git a/public/confirm_logout.php b/public/confirm_logout.php new file mode 100644 index 0000000..b6f2f01 --- /dev/null +++ b/public/confirm_logout.php @@ -0,0 +1,6 @@ +view('template/header', ["title" => "Bekreft avlogging"]); +$app->view('confirm_logout'); +$app->view('template/footer'); \ No newline at end of file