Beispiel #1
0
     header("Content-type: text/html; charset=utf-8");
     echo serialize($return);
     break;
 case 'inline_chat':
     $fromuid = MooGetGPC('fid', 'string', 'G');
     $touid = MooGetGPC('tid', 'string', 'G');
     $serverid = MooGetGPC('sid', 'string', 'G');
     $return = ChatUser($fromuid, $touid, $serverid);
     //var_dump($return);
     include 'module/chat/chat_win.php';
     break;
 case 'newinlinemsg':
     $fromuid = MooGetGPC('fid', 'string', 'G');
     $touid = MooGetGPC('tid', 'string', 'G');
     $chatcheck = new ChatAction();
     $boo = $chatcheck->InlineChatMsg($touid, $fromuid);
     if ($boo) {
         echo '1';
     } else {
         echo '0';
     }
     break;
 case 'hasinlinemsg':
     $touid = MooGetGPC('touid', 'string', 'G');
     $chatcheck = new ChatAction();
     $data = $chatcheck->hasInlineChat($touid);
     header("Content-type: text/html; charset=utf-8");
     if (!$data) {
         echo '0';
     } else {
         echo serialize($data);