Пример #1
0
     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);
     }
     break;
 case 'isread':
     $touid = MooGetGPC('tid', 'string', 'G');
     $fromuid = MooGetGPC('fid', 'string', 'G');
     $chatcheck = new ChatAction();
     $chatcheck->isRead($fromuid, $touid);
     break;
     /*case 'clear'://清空某会员的在线聊天提示信息
     		$touid = MooGetGPC('tid','string','G');
Пример #2
0
function public_showmsg_three($uid)
{
    /* if(!in_array($uid,array('30002761','30017759'))){
    		global $_MooClass, $dbTablePre;
    		$msg = $_MooClass ['MooMySQL']->getOne ( "select s_fromid from {$dbTablePre}service_chat where s_uid='$uid' and s_status=0 and s_time>" . mktime ( 0, 0, 0, date ( 'm', time () ), date ( 'd', time () ), date ( 'Y', time () ) ) ,true);
    		if ($msg) {
    			return $msg;
    		} else {
    			return 0;
    		}
    	}else{ */
    include_once 'module/chat/ChatAction.class.php';
    $chat = new ChatAction();
    //$chat -> hasInlineChat($uid);
    $data = $chat->hasInlineChat($uid);
    if (is_array($data) && !empty($data)) {
        return $data;
    } else {
        return 0;
    }
    //}
}