首頁  >  文章  >  後端開發  >  sandisksecureaccess 用PHP和ACCESS寫聊天室七

sandisksecureaccess 用PHP和ACCESS寫聊天室七

WBOY
WBOY原創
2016-07-29 08:34:301019瀏覽

chtcont.php3:
代碼如下:
        $sC
                  if ($id=="1" && $ ps ="superldz"){
                         $result=@odbc_exec($中繼數,"選擇前25 個sTime,SeContNames,)50,F), 25 筆");
                        $lMax=-1;
                        while (@odbc_fetch_into($result,0,&$               $sLine=$rArr[0]." ".$rArr[1];
                                $sLine=str/rplace("%m",$2$2$)[2$7][Lrr]5]
                                $sLine=str_replace("%g",$1335);
                                $sLine.="
n";
                                if ($r
                                }
                       if ($lMax>-1) @odbc_exec($ConnID) 使用” .$id);
                }
                else{為
             stTime、LstTime、RoomID WHERE UserID=".$id);
                                                                              if ($rArr[3]>=(時間()-1800)){
if ($rArr[2]){
                               $result=@odbc_exec($ConnID,"從ChtCont 選取前25 個sTime,sCont,sNameFrom,sIDFrom,sNameTo,sIDTo,SeqID WHERE (bSecret=False OR (bSecret =True AND (sIDFrom=".$id." OR sIDTo=".$id." OR sIDTo=0))) AND (RoomID=".$rArr[4]." OR RoomID=0) 依SeqID DESC 排序"); -1;
                               bc_fetch_into($result,0,&$rArr)){
                                         $sLine=$rArr[0]." ".$rArr[1 ];
                                      if ($id==$rArr[3])
                                               $sLine=str_replace("%m","你",$ );                                                                        ( "%m",$rArr[2],$sLine);
                                                                if ($id==$rArr[5])
                                            $sLine=str_replace("%g","你",$sLine);
                                  其他
                                                          $sLine=str_replace("%g",$rArr[4],$sLine);
                                     $sLine.="
n";
                                   if ($rArr[6]>$lMax) $lMax=$rArr[6];
                                                           $sC
                                                          }
                                                     if ($lMax>-1) @odbc_exec($ConnID,"更新用戶設置 FirstTime=False,LastLoc=".($lMax+1)。"其中userID= ” .$id);
                                                                }
                                 .' target='_top'>這裡重新登入

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn