From d8055192991ac8504e48c137038879790c762d2d Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 26 Jul 2016 14:27:14 +0200 Subject: Adding and deleting users --- include/clients-overview.php | 2 +- include/settings.php | 170 ++++++++++++++++++++++++++++++++++++------- include/users-new.php | 42 +++++++++++ 3 files changed, 188 insertions(+), 26 deletions(-) create mode 100644 include/users-new.php (limited to 'include') diff --git a/include/clients-overview.php b/include/clients-overview.php index 7ce45a6..fc2c3a0 100644 --- a/include/clients-overview.php +++ b/include/clients-overview.php @@ -70,7 +70,7 @@ require_once('./login.php');
$pass
. Refresh the page.";
+ }
+} catch (PDOException $e) {
+ $response->success = false;
+ $response->message = "The user could not be created due to a PDO error ({$e->getMessage()}).";
+}
+echo $response->getJson();
--
cgit v1.2.3