色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術(shù)文章
文章詳情頁

用PHP和ACCESS寫聊天室(九)

瀏覽:2日期: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="進(jìn)入"></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">這個房間已經(jīng)被拆了!</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.lshqa.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.lshqa.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.lshqa.cn/bcjs/main.css' type='text/css'></head><body></body></html>"include("room.php3"); ?> 【本文版權(quán)歸作者與奧索網(wǎng)共同擁有,如需轉(zhuǎn)載,請注明作者及出處】;;;;
標(biāo)簽: PHP
主站蜘蛛池模板: 亚洲一区二区三区四区在线 | 黄色毛片播放 | 国产成人精品亚洲 | hd最新国产人妖ts视频 | 亚洲综合精品成人 | 男人干女人逼 | 日本a级毛片免费观看 | 国产aaa女人十八毛片 | 欧美成人免费在线 | 在线观看一级毛片 | 国产一区二区三区免费大片天美 | 农村寡妇野外情一级毛片 | 日韩一级欧美一级在线观看 | 手机在线看福利 | 日本欧美国产精品 | 国产乱子伦露脸对白在线小说 | 中文字幕视频在线观看 | 久草在线视频免费看 | 欧美大片aaa | 免费色网址| 成人精品综合免费视频 | 高清国产精品久久久久 | 色综合久久88一加勒比 | 欧洲亚洲综合一区二区三区 | 美女操男人| 99视频在线精品自拍 | 免费亚洲成人 | 精品三级内地国产在线观看 | 一区二区三区网站在线免费线观看 | 亚洲国产老鸭窝一区二区三区 | 成年人免费黄色 | 日韩免费一级片 | 亚洲成年人免费网站 | 欧美大片毛片大片 | 久草国产在线播放 | 日韩在线亚洲 | 老头巨大粗长xxxxx | 国产一区二区三区四区在线观看 | 黄色美女免费网站 | 玖玖爱精品| 国产成人综合久久亚洲精品 |