From 97cc3dc12e4173a715a359426c31b622a5bfc347 Mon Sep 17 00:00:00 2001 From: Tim-VD-K Date: Tue, 7 Feb 2023 22:38:18 +0100 Subject: [PATCH 1/8] Update account.php --- account.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account.php b/account.php index 98f51dd..d84d7cd 100644 --- a/account.php +++ b/account.php @@ -32,6 +32,9 @@ echo '
+ + +

" . $project['name'] . "X

"; - } else { + foreach ($projects as $project) { + echo "

" . $project['name'] . "X

"; + } + else { echo "

Er zijn geen projecten

"; } ?> From d7762837752a1f82a126080d1d7ca5e8676a5a83 Mon Sep 17 00:00:00 2001 From: Tim-VD-K Date: Tue, 7 Feb 2023 22:38:29 +0100 Subject: [PATCH 5/8] Update users.php --- users.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/users.php b/users.php index 35d6a02..7f81bdf 100644 --- a/users.php +++ b/users.php @@ -12,7 +12,7 @@ accounts::update($_GET["edit"], $password, $_POST["username"], $_POST["admin"]); header('location: /users'); } -if ($_POST and $_GET['add'] == 'account'){ +if ($_POST and $_GET['add'] == 'account') { $return = accounts::add($_POST['password'], $_POST['username'], $_POST['admin']); echo $return; } @@ -42,9 +42,14 @@ + + + + +