* @copyright Copyright (c) 2020-2021 * @license https://opensource.org/licenses/MIT MIT License * @link https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code * @version 1.0 */ session_start(); require_once 'config/config.php'; require_once BASE_PATH . '/includes/auth_validate.php'; // Users class require_once BASE_PATH . '/lib/Users/Users.php'; $Users = new Users(); // User ID for which we are performing operation $admin_user_id = htmlspecialchars($_GET['admin_user_id'], ENT_QUOTES, 'UTF-8'); $operation = htmlspecialchars($_GET['operation'], ENT_QUOTES, 'UTF-8'); ($operation == 'edit') ? $edit = true : $edit = false; // Serve POST request if ($_SERVER['REQUEST_METHOD'] === 'POST') $Users->edit(); // Select where clause $db = getDbInstance(); $db->where('id', $admin_user_id); $admin_account = $db->getOne("admin_accounts"); ?>