header("Location: http://localhost/healthyone/view/passwordSetting.php?success=1"); } } else { if ($type == 2) { header("Location: http://localhost/healthyone/view/specialPasswordSetting.php?errno=0"); } elseif ($type == 3) { header("Location: http://localhost/healthyone/view/adminPasswordSetting.php?errno=0"); } else { header("Location: http://localhost/healthyone/view/passwordSetting.php?errno=0"); } } exit; } else { if ($_GET['operation'] == 2) { $username = $_POST['id']; $res = AdminService::passSpecialUser($username); header("Location: http://localhost/healthyone/view/accountManage.php"); exit; } else { if ($_GET['operation'] == 3) { session_start(); $username = $_SESSION["username"]; $name = $_POST['name']; $sex = $_POST['sex']; $birthday = $_POST['year'] . "-" . $_POST['month'] . "-" . $_POST['day']; $hobby = $_POST['hobby']; $introduction = $_POST['introduction']; $res = AdminService::modifySpecialUser($username, $name, $sex, $birthday, $hobby, $introduction); if ($res) { header("Location: http://localhost/healthyone/view/specialSetting.php?success=1"); exit;