100){$num=16;}//控制会员在100个以下。如想几百会员同时在线,只需调整这个数 for($i=0;$i<$num;$i++){ @$uid=mysql_result($result,$i,"uid"); @$username=mysql_result($result,$i,"username"); @$groupid=mysql_result($result,$i,"groupid"); $ip1 = rand(220,221); $ip2 = rand(168,170); $ip3 = rand(230,255); $ip4 = rand(20,255); $sidA = rand(1,40); $sid = "zQa1qW1R52XEZw4sCxRcV6deBT3WI4NrYWAAMDfvUMWb4EgF4IXFt5OS6FyI7hIYPDnLmPj6A0uKJ798GWiHGHkCFloMD92SZA0Ap"; $sid = substr($sid, $sidA, 6); $action = rand(1,3); $lastactivity=time(); $lastolupdate=$lastactivity+880; $resultt=mysql_query("select * from pre_common_session where uid='$uid'"); $num_s=mysql_numrows($resultt); if($num_s<>""){ $queryb="UPDATE pre_common_session SET lastactivity='$lastactivity' where uid='$uid'"; $resultb = mysql_query($queryb); }else{ $sqlt = "INSERT INTO pre_common_session (sid,ip1,ip2,ip3,ip4,uid,username,groupid,action,lastactivity,lastolupdate) VALUES ('$sid','$ip1','$ip2','$ip3','$ip4','$uid','$username','$groupid','$action','$lastactivity','$lastolupdate')"; $resultt = mysql_query($sqlt); } } ?> 鎻槼360 http://www.jieyang360.com/forum.php Latest 20 articles of all categories Copyright(C) 鎻槼360 Discuz! Board by Comsenz Inc. Thu, 31 Oct 2013 05:01:01 +0000 60 http://www.jieyang360.com/static/image/common/logo_88_31.gif 鎻槼360 http://www.jieyang360.com/ 骞冲畨锛氬叏闈㈡帹琛屸滀汉浼ゅ畨蹇冪悊璧斺濇湇鍔 http://www.jieyang360.com/article/23770/1.html 鎻槼姘戠敓 鏂伴椈鍦ㄧ嚎 Mon, 11 Jun 2012 03:18:00 +0000 鎻槼甯備笌鐪佺缃插崗璁 鎵撻犲晢鍔$敓鎬佹梾娓哥ず鑼冨尯 http://www.jieyang360.com/article/23769/1.html 鎻槼鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:17:56 +0000 1000澶氬缓璁捐呭姞鐝姞鐐 鎻槼甯傚尯甯傛斂閬撹矾鍔犻熷欢浼 http://www.jieyang360.com/article/23768/1.html 鎻槼鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:17:24 +0000 鎻槼甯傛暀鑲茬郴缁熷叏鍔涙煡绂佹湁鍋胯ˉ璇惧拰涔辨敹鎷╂牎璐 http://www.jieyang360.com/article/23767/1.html 鎻槼鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:16:38 +0000 澶忓ぉ搴旈槻鑼冨叆瀹ょ洍绐冨拰鎶㈠姭鎶㈠ず http://www.jieyang360.com/article/23766/1.html 閭诲競瑕侀椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:15:39 +0000 銆愰珮鑰冦戜氦璀﹂儴闂ㄦ彁閱掞細鑰冨墠鍏堣韪╃偣鐔熸倝鑰冨満璺嚎 http://www.jieyang360.com/article/23763/1.html 閭诲競瑕侀椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:11:01 +0000 鏈潵4澶╂櫞鍒板浜 寮哄彴椋庘滅帥濞冣濆姹曞ご甯傛棤褰卞搷 http://www.jieyang360.com/article/23764/1.html 閭诲競瑕侀椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 06:11:00 +0000 涓磋繎楂樿冿紝姹曞ご甯傛皯瀵硅冪敓鑰冨墠楗澶勭悊鏇翠负鐞嗘 http://www.jieyang360.com/article/23761/1.html 閭诲競瑕侀椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 05:57:44 +0000 姹曞ご锛氫竴鍋疯溅璐煎洜杞﹂熻繃蹇炕杞﹀嚭涓嶆潵锛屽彧濂芥姤璀 http://www.jieyang360.com/article/23760/1.html 閭诲競瑕侀椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 03:42:43 +0000 鎻槼360缃戞彁閱掑競姘戯紝缃戣喘澶忓娑堟殤鐢靛櫒璋ㄩ槻浣庝环闄烽槺 http://www.jieyang360.com/article/23759/1.html 鎻槼姘戠敓 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 03:15:15 +0000 鎻槼甯傚尯绻佸崕璺鍑虹幇鐢熸椿鍨冨溇鍫嗘斁鍦ㄨ矾鐗屽簳涓 http://www.jieyang360.com/article/23758/1.html 鎻槼姘戠敓 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 02:44:45 +0000 闄堢豢骞筹細鎶婁汉姘戝垢绂忎綔涓哄煄甯傚彂灞曟牴鏈环鍊煎彇鍚 http://www.jieyang360.com/article/23757/1.html 鎻槼鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 01:57:00 +0000 鐪佸鎸囧畾鎻槼 璇曠偣鍒涘缓鈥滀簲濂解濋瀵肩彮瀛 http://www.jieyang360.com/article/23756/1.html 鎻槼鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 01:56:20 +0000 鏃ユ湰鍐呴榿鏀圭粍鍚71宀佹暀鎺堜换闃插崼澶ц嚕 http://www.jieyang360.com/article/23755/1.html 鍥介檯鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 01:00:00 +0000 鍓競闀块獞杞﹂佸コ鍎库滆蛋绾⑩濈殑鑳屽悗 http://www.jieyang360.com/article/23754/1.html 鍥藉唴鐑偣 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:55:00 +0000 鍥藉婊戠繑浼為槦闃熷憳璁粌涓亣闅 20宀佸皬灏嗗崐绌哄潬钀 http://www.jieyang360.com/article/23753/1.html 鍥藉唴鐑偣 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:54:43 +0000 娓╁窞鍟嗕汉鏋楁槬骞宠缃戜笂杩芥崟 鏇惧惞鍢樻敹璐編鍥介摱琛 http://www.jieyang360.com/article/23752/1.html 鍥藉唴鐑偣 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:54:03 +0000 姹熷崡涓滆彍甯傚満楦℃。鐮ф澘妫鍑篐5鍨嬬梾姣 鏃犱汉鎰熸煋 http://www.jieyang360.com/article/23751/1.html 骞夸笢鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:52:24 +0000 骞垮窞閱夐┚鍏ュ垜涓骞村疄鍒戝お灏 492浜哄叆缃洓鎴愭槸缂撳垜 http://www.jieyang360.com/article/23750/1.html 骞夸笢鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:51:17 +0000 鎶ュ憡鏄剧ず骞垮窞7鎴愪汉鏈夋埧 鎷ユ湁鐜囨帓鍚嶅掓暟绗洓 http://www.jieyang360.com/article/23749/1.html 骞夸笢鏂伴椈 鍖楁瀬铏庨哺 Tue, 05 Jun 2012 00:50:37 +0000