From 6596a76c856e2ddfccbc5f03d12a524fdf80e1bf Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 16:10:15 +0200 Subject: feat: Logout button --- views/global/header.php | 6 ++++-- views/global/router.php | 1 + views/login/index.php | 31 ++++++++++++++++--------------- views/logout/index.php | 23 +++++++++++++++++++++++ views/logout/meta.php | 4 ++++ 5 files changed, 48 insertions(+), 17 deletions(-) create mode 100644 views/logout/index.php create mode 100644 views/logout/meta.php (limited to 'views') diff --git a/views/global/header.php b/views/global/header.php index a00c528..863ba10 100644 --- a/views/global/header.php +++ b/views/global/header.php @@ -17,7 +17,8 @@
Login Register - + +
diff --git a/views/global/router.php b/views/global/router.php index 8986dfe..d77fcda 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -16,6 +16,7 @@ function route_view() { case '/profile': return '/profile'; case '/register': return '/register'; case '/login': return '/login'; + case '/logout': return '/logout'; } switch ($uri) { diff --git a/views/login/index.php b/views/login/index.php index 1013874..94faafe 100644 --- a/views/login/index.php +++ b/views/login/index.php @@ -1,20 +1,21 @@ - - -

- Fail: -

- -

- Success! -

- +

Login

+ +
+ +
+ + +

+ Error: +

+ + + - - diff --git a/views/logout/index.php b/views/logout/index.php new file mode 100644 index 0000000..fc9af5a --- /dev/null +++ b/views/logout/index.php @@ -0,0 +1,23 @@ +

Logging you out...

+ + diff --git a/views/logout/meta.php b/views/logout/meta.php new file mode 100644 index 0000000..be189c2 --- /dev/null +++ b/views/logout/meta.php @@ -0,0 +1,4 @@ +