From 1fb4afc6aafde1efe6c1463998b606adf265d362 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 3 Jul 2017 03:12:03 -0600 Subject: [PATCH] Improve mobile integration, add autocorrect etc. flags to login fields --- api.php | 2 +- app.php | 2 +- index.php | 6 ++--- mobile/index.php | 1 + pages.php | 13 +++++++++ pages/shifts.php | 67 ++++++++++++++++++++++++++++++++++++++++++++++ static/css/app.css | 16 +++++++++++ static/js/home.js | 6 ++--- 8 files changed, 105 insertions(+), 8 deletions(-) create mode 100644 pages/shifts.php diff --git a/api.php b/api.php index 77d63e6..b16a7f2 100644 --- a/api.php +++ b/api.php @@ -14,7 +14,7 @@ header("Content-Type: application/json"); $username = $VARS['username']; $password = $VARS['password']; -if (user_exists($username) !== true || authenticate_user($username, $password, $errmsg) !== true) { +if (user_exists($username) !== true || authenticate_user($username, $password, $errmsg) !== true || account_has_permission($username, "QWIKCLOCK") !== true) { header("HTTP/1.1 403 Unauthorized"); die("\"403 Unauthorized\""); } diff --git a/app.php b/app.php index 00aa34c..4d6ba5d 100644 --- a/app.php +++ b/app.php @@ -53,7 +53,7 @@ if (!is_empty($_GET['page'])) { ?> -