isAdmin()) { if (isset($_GET["delete"])) { $user->deleteUser($_GET['delete']); header("Location: admin.php?delete=true"); die(); } if (isset($_POST["btnAdd"])) { unset($_POST["btnAdd"]); if (isset($_POST["repass"])) { unset($_POST["repass"]); } if (isset($_POST["btnVerifyUser"])) { unset($_POST["btnVerifyUser"]); } if (isset($_POST["id_user"])) { $user->modifyUser($_POST, $_POST["id_user"]); } else { $user->addUser($_POST); } } else { if ($isEdition) { $register = $user->getUserByID($userId); } ?>