亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

用PHP和ACCESS寫聊天室(九)

瀏覽:5日期: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://www.aoyou183.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://www.aoyou183.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://www.aoyou183.cn/bcjs/main.css' type='text/css'></head><body></body></html>"include("room.php3"); ?> 【本文版權歸作者與奧索網共同擁有,如需轉載,請注明作者及出處】;;;;
標簽: PHP
主站蜘蛛池模板: 99精品国产一区二区青青牛奶 | 国产精品久久久久久久成人午夜 | 啪视频在线观看高清 | 成片免费观看视频在线网 | 日本欧美久久久久免费播放网 | 久久久久久午夜精品 | 亚洲黄页 | 精品久久不卡 | 日产欧美亚洲 | 黄色国产精品 | 黄网站在线观看永久免费 | 毛茸茸年轻成熟亚洲人 | aabb片免费看 | 成年人午夜免费视频 | 非洲特黄一级毛片高清视频 | 色片网站在线观看 | 小蝌蚪在线成人免费视频 | 亚洲 欧洲 另类 综合 自拍 | 99re8在这里只有精品23 | 国产精品7m凸凹视频分类大全 | 真实国产乱视频国语 | 91最新在线播放 | 尤物tv在线 | 欧美日韩亚| 日韩色视频一区二区三区亚洲 | 免费黄色网址大全 | 国产视频福利在线 | 国产精品成人久久久 | 日韩永久在线观看免费视频 | 在线欧美国产 | 日本一级毛片a免费播放 | 国产一区欧美二区 | 亚洲一区二区三区高清 不卡 | 又黄又爽又猛大片录像 | 久操视频免费观看 | 米奇精品一区二区三区在线观看 | 91高清免费视频 | 黄色毛片在线观看 | 国产伦精品一区二区三区无广告 | 九九在线精品视频播放 | 中文字幕在线永久视频 |