国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

用PHP和ACCESS寫聊天室(九)

瀏覽:4日期:2024-01-02 10:53:18
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>&nbsp;</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>&nbsp;</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='http://m.cgvv.com.cn/bcjs/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='http://m.cgvv.com.cn/bcjs/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='http://m.cgvv.com.cn/bcjs/main.css' type='text/css'></head><body></body></html>"include("room.php3"); ?> 【本文版權歸作者與奧索網共同擁有,如需轉載,請注明作者及出處】;;;;
標簽: PHP
主站蜘蛛池模板: 日韩一级黄色 | 国产精品视_精品国产免费 国产精品视频久 | 亚洲男同可播放videos | 久久福利青草精品资源站免费 | 亚洲在线观看视频 | 国产精品视频男人的天堂 | 男人透女人超爽视频免费 | 欧美日韩在线播一区二区三区 | 三级黄色片日韩 | 日本道色| 色在线看| 老司机亚洲精品影院在线 | 久草免费在线视频 | 亚洲欧美日韩国产专区一区 | 青青草国产一区二区三区 | 国产一区欧美 | 亚洲三级中文字幕 | 日韩欧美一级a毛片欧美一级 | 亚洲免费观看网站 | 亚洲国产精品免费在线观看 | 亚洲精品在线播放视频 | 香蕉视频911| 最近手机中文字幕1 | a毛片基地免费全部香蕉 | 99re久久精品国产首页2020 | 最新99国产成人精品视频免费 | 国产亚洲精品午夜高清影院 | 免费逼片| 欧美成人中文字幕 | 国产乱码一区二区三区四 | 欧美成人第一页 | 在线播放第一页 | 欧洲成人r片在线观看 | 手机看片日韩高清国产欧美 | 美女视频永久黄网站免费观看国产 | 怡红院久久 | 波多野结衣福利视频 | 欧美成在线播放 | 亚洲综合久| 日本免费一区二区三区视频 | 久久国产亚洲观看 |