예제 #1
0
 } 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;
             } else {
                 header("Location: http://localhost/healthyone/view/specailSetting.php?errno=1");
                 exit;
             }
         } else {
             if ($_GET['operation'] == 4) {
                 session_start();
                 $username = $_SESSION["username"];
                 $file = $_POST['uploadfile'];
                 echo $file;
             }
         }