enterrm.php3
代码如下:
$C
if ($ConnID){
$result=@odbc_exec($ConnID,"SELECT PassWord,LstTime,RoomID, 사용자 WHERE UserID=".$id)로부터 RefRate;
if (@odbc_fetch_into($result,0,&$rArr)){
$sRoomID=$rArr[2];
$sRefRate=(int)$rArr[3];
if ($sRefRate<2) $sRefRate=2;
if (($rArr[0]==$ps) && ($rArr[1]>=(time()-1800))){
$sNewRoomID=substr($selRoom ,2);
if ($sNewRoomID!=$sRoomID){
$result=@odbc_exec($ConnID,"방에서 비밀번호 선택 E 방ID=".$sNewRoomID);
if (@odbc_fetch_into($result,0,&$rArr)){
if ((strlen(trim($rArr[0]))==0) || ($rArr[0]== $sPass)){
@odbc_exec($ConnID,"UPDATE User SET RoomID=".$sNewRoomID.",ToID=0,T WHERE UserID=".$id);
((int)$sRoomID!=1)인 경우{
$result=@odbc_exec($ConnID,"SELECT COUNT(UserID) FROM 사용자 WHERE RoomID=".$sRoomID);
@odbc_fetch_into($result,0,&$rArr);
if ($rArr[0]==0) @odbc_exec($ConnID,"DELETE * FROM Room Where RoomID=".$sRoomID);
}
}
그렇지
?> ;
<머리>