예제 #1
0
파일: doaction.php 프로젝트: novnan/meiju
} elseif ($enews == "MoveFava_All") {
    $favaid = $_POST['favaid'];
    $cid = $_POST['cid'];
    MoveFava_All($favaid, $cid);
} elseif ($enews == "AddMsg") {
    AddMsg($_POST);
} elseif ($enews == "DelMsg") {
    DelMsg($_GET['mid']);
} elseif ($enews == "DelMsg_all") {
    DelMsg_all($_POST['mid']);
} elseif ($enews == "AddFriend") {
    AddFriend($_POST);
} elseif ($enews == "EditFriend") {
    EditFriend($_POST);
} elseif ($enews == "DelFriend") {
    DelFriend($_GET);
} elseif ($enews == "AddFriendClass") {
    AddFriendClass($_POST);
} elseif ($enews == "EditFriendClass") {
    EditFriendClass($_POST);
} elseif ($enews == "DelFriendClass") {
    DelFriendClass($_GET['cid']);
} elseif ($enews == 'SendPassword') {
    SendGetPasswordEmail($_POST);
} elseif ($enews == 'DoGetPassword') {
    DoGetPassword($_POST);
} elseif ($enews == 'DoActUser') {
    DoActUser($_GET);
} elseif ($enews == 'RegSend') {
    DoRegSend($_POST);
} else {
예제 #2
0
         SendDataAndDie(666, "db");
     }
     SendDataAndDie(200, "");
 } else {
     if ($cmd == "deletefriend") {
         if (!isset($req->data)) {
             SendDataAndDie(4, "");
         }
         if (!isset($req->phpsesid)) {
             SendDataAndDie(301, "");
         }
         $res = GetUID($req->phpsesid);
         if ($res === false) {
             SendDataAndDie(666, "user id");
         }
         $res = DelFriend($res, $req->data);
         if ($res === false) {
             SendDataAndDie(666, "db");
         }
         SendDataAndDie(200, "");
     } else {
         if ($cmd == "info") {
             if (!isset($req->phpsesid)) {
                 SendDataAndDie(301, "");
             }
             $res = GetUID($req->phpsesid);
             if ($res === false) {
                 SendDataAndDie(666, "user id");
             }
             $res = GetInfo($res);
             if ($res === false) {