代碼如下:
<?php
$ConnID=@odbc_connect("jtfcht","admin","");
if ($ConnID){
$result=@odbc_exec($ConnID,"SELECT PassWord,LstTime,RoomID,RefRate FROM User " /> 免费 视频 1级,日本aaaa级,在线国产欧美

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

用PHP和ACCESS寫聊天室(九)

enterrm.php3
代碼如下:
<?php
        $ConnID=@odbc_connect("jtfcht","admin","");
        if ($ConnID){
                $result=@odbc_exec($ConnID,"SELECT PassWord,LstTime,RoomID,RefRate FROM User WHERE UserID=".$id);
                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,"SELECT Password FROM Room WHERE RoomID=".$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,ToName='大家' WHERE UserID=".$id);
                                                        if ((int)$sRoomID!=1){
                                                                $result=@odbc_exec($ConnID,"SELECT COUNT(UserID) FROM User WHERE RoomID=".$sRoomID);
                                                                @odbc_fetch_into($result,0,&$rArr);
                                                                if ($rArr[0]==0) @odbc_exec($ConnID,"DELETE * FROM Room Where RoomID=".$sRoomID);
                                                        }
                                                }
                                                else{
?>
<html>
<head>
<title>輸入房間口令</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="main.css" type="text/css">
<script language="JavaScript">
<!--

function PassSetFocus( ) {
        document.frmEnterSm.sPass.focus();
}

//-->
</script>
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body onload="PassSetFocus();">
<p> </p>
<p align="center"><font color="#996666">輸入房間口令</font></p>
<form name="frmEnterSm" action="enterrm.php3" method="post">
<table width="100%" border="0" align="center">
        <tr>
                <td colspan="2"><input type="hidden" name="selRoom" value="<?php echo $selRoom; ?>"><input type="hidden" name="id" value="<?php echo $id; ?>"><input type="hidden" name="ps" value="<?php echo $ps; ?>"></td>
        </tr>
        <tr>
                <td width="40%" align="right">口令:</td>
                <td width="60%"><input type="password" name="sPass" maxlength="10" size="8"></td>
        </tr>
        <tr>
                <td colspan="2" align="center"><input type="submit" name="cmdYes" value="進入"></td>
        </tr>
</table>
</form>
<p align="center">按<a href="room.php3?id=<?php echo $id; ?>&ps=<?php echo $ps; ?>&at=<?php echo time(); ?>">這里</a>放棄</p>
</body>
</html>
<?php
                                                        exit();
                                                }
                                        }
                                        else{
?>
<html>
<head>
<title>加入房間出錯</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body>
<p> </p>
<p align="center">這個房間已經被拆了!</p>
<p align="center">按<a href="room.php3?id=<?php echo $id; ?>&ps=<?php echo $ps; ?>&at=<?php echo time(); ?>">這里</a>返回</p>
</body>
</html>
<?php
                                                exit();
                                        }
                                }
                        }
                        else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
                }
                else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
                @odbc_close($ConnID);
        }
        else echo "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>房間</title><link rel='stylesheet' href='main.css' type='text/css'></head><body></body></html>";
        include("room.php3");
?>



【本文版權歸作者與奧索網共同擁有,如需轉載,請注明作者及出處】    

php技術用PHP和ACCESS寫聊天室(九),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 久久国产精品视频 | 午夜第一页 | 美美女高清毛片视频免费观看 | 亚洲国产精品久久久天堂 | www视频在线播放 | a资源在线观看 | 丁香六月 久久久 | 国内成人免费视频 | 国产愉拍精品视频手机 | 国色天香成人网 | 狠狠色婷婷丁香六月 | 日本免费久久久久久久网站 | 四虎影视永久免费观看网址 | 国产xx肥老妇视频奂费 | 欧美日韩一区二区三区自拍 | 亚洲乱码在线视频 | 国产成人精品久久一区二区三区 | 久久久噜噜噜久久久 | 国产一级特黄在线播放 | 怡红院亚洲红怡院在线观看 | 欧美日韩一区二区三在线 | 色狠狠一区 | 五月婷六月 | 久久九九视频 | 亚洲女人影院想要爱 | 一区二区三区在线看 | 性欧美xxxx视频在线观看 | 缴情啪啪三级小说网 | 四虎影视国产精品永久在线 | 五月激情婷婷丁香 | 黄色小视频网 | 美女国内精品自产拍在线播放 | 一级做a爰片久久毛片图片 一级做a爰片久久毛片武则天 | 玖玖五月 | 好属妞这里只有精品久久 | 91在线视频导航 | 国产一级做a爰片久久毛片99 | 亚洲精品天堂在线观看 | 国产福利在线视频 | 五月玖玖 | 国产精品第 |