BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #10242同步于 2006/8/25
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖

Re: 根据ID实时察看发贴数1.0

Lonhero
2006/8/25镜像同步5 回复
GET /wForum/dispuser.php?id=username HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Host: forum.byr.cn Connection: Keep-Alive HTTP/1.1 200 OK Date: Fri, 25 Aug 2006 14:58:17 GMT Server: Apache/2.0.55 (Unix) PHP/4.4.1 X-Powered-By: PHP/4.4.1 Set-Cookie: UTMPUSERID=guest; path=/ Set-Cookie: UTMPKEY=2520059; path=/ Set-Cookie: UTMPNUM=28640; path=/ Set-Cookie: LOGINTIME=1156517897; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Content-Length: 6776 Keep-Alive: timeout=15, max=200 Connection: Keep-Alive Content-Type: text/html <?xml version="1.0" encoding="GB2312"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"/> <title>北邮人论坛 -- 北邮人的温馨家园 -- 察看用户信息</title> <link rel="stylesheet" type="text/css" href="css/ansi.css"/> <link rel="stylesheet" type="text/css" href="css/common.css"/> <script src="inc/browser.js" language="javascript"><O /script> <script src="inc/funcs.js" language="javascript"></script> <script type="text/javascript"> <!-- writeStyleSheets(); //--> </script> </head> <script language="javascript"> <!-- var siteconf_SMS_SUPPORT = 0; var siteconf_BOARDS_PER_ROW = 3; var siteconf_SHOW_POST_UNREAD = 0; var siteconf_THREADSPERPAGE = 10; defineMenus(); //--> </script> <body style="margin: 1px;" onmouseover="HideMenu(event);"> <div id="menuDiv" class="navClass1"></div> <table cellspacing="0" cellpadding="0" align="center" class="navClass2"> <tr><td width="100%"> <table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr><td class="TopDarkNav" height="9"></td></tr> <tr><td height="70" class="TopLighNav2"> <table border="0" width="100%" align="center"> <tr> <td align="left" width="25%"><a href="index.php"><img border="0" src='images/logo.gif'/></a></td> <td align="center" width="65%"> 欢迎光临北邮人论坛!<br>教育网:FORUM.BYR.EDU.CN<br>公众网:FORUM.BYR.CN</td> <td align="right" style="line-height: 15pt" width="10%"> <nobr><a href="http://www.aka.cn/">联系我们</a></nobr><br/> <nobr><a href="index.php">论坛帮助</a></nobr> </td></tr> </table> </td></tr> <tr><td class="TopLighNav" height="9"></td></tr> <tr> <td class="TopLighNav1" height="22" valign="middle">&nbsp;&nbsp; <a href="logon.php">登录</a> <img src="pic/navspacer.gif" align="absmiddle"/> <a href="register.php">注册</a> <img src="pic/navspacer.gif" align="absmiddle"/> <a title="搜索当前版面" href="query.php" onmouseover="ShowMenu(query,100,event)">搜索</a> <img src="pic/navspacer.gif" align="absmiddle"/> <a href="#" onmouseover="ShowMenu(stylelist,100,event)">自选风格</a> <img src="pic/navspacer.gif" align="absmiddle"/><a href="../pc/pcmain.html"><font color="red">北邮人博客</font></a> </td> </tr> </table> </td></tr> </table> <br/><table cellspacing="1" cellpadding="3" align="center" class="TableBorder2"> <tr><td><nobr> <img src="pic/forum_nav.gif" align="absmiddle"/> <a href="index.php">北邮人论坛</a> → 察看用户信息</nobr></td> <td align="right" id="serverTime"> </td> </tr> </table> <script language="JavaScript"> <!-- initTime(1156546697); //--> </script> <br/> <table width=97% border=0 cellspacing=0 cellpadding=3 align=center> <tr> <td><img src="userface/image0.gif" align=absmiddle/><b>username</b> </td> <td align=right> <b> <a href="sendmail.php?receiver=username" title="给该用户发信">发信问候</a> | <a href="friendlist.php?addfriend=username" title="将该用户添加到好友列表">加为好友</a> </b> </td> </tr> </table> <table cellspacing=1 cellpadding=3 align=center style="table-layout:fixed;word-break:break-all" class=TableBorder1> <col width=20% ><col width=*><col width=40% > <tr> <th colspan=2 align=left height=25>基本资料</th> <td rowspan=8 align=center class=TableBody1 width=40% valign=top> <font color=gray>无</font> </td> </tr> <tr> <td class=TableBody1 width=20% align=right>昵 称:</td> <td class=TableBody1>username </td> </tr> <tr> <td class=TableBody1 width=20% align=right>性 别:</td> <td class=TableBody1>女 </td> </tr> <tr> <td class=TableBody1 width=20% align=right>星 座:</td> <td class=TableBody1> <font color=gray>未知</font></td> </tr> <tr> <td class=TableBody1 width=20% align=right>Q Q:</td> <td class=TableBody1> <font color="gray">未知</font></td> </tr> <tr> <td class=TableBody2 width=20% align=right>ICQ:</td> <td class=TableBody2> <font color="gray">未知</font></td> </tr> <tr> <td class=TableBody1 width=20% align=right>MSN:</td> <td class=TableBody1> <font color="gray">未知</font> </td> </tr> <tr> <td class=TableBody2 width=20% align=right>主 页:</td> <td class=TableBody2> <font color=gray>未知</font></td> </tr> </table> <br> <table cellspacing=1 cellpadding=3 align=center class=TableBorder1> <tr> <th align=left colspan=6 height=25> 论坛属性</th> </tr> <tr> <td class=TableBody1 width=15% align=right>论坛职务:</td> <td width=35% class=TableBody1><b>用户 </b></td> <td width=15% align=right class=TableBody1>帖子总数:</td> <td width=35% class=TableBody1><b>{帖子数}</b> 篇</td> </tr> <tr> <td class=TableBody1 width=15% align=right>门 派:</td> <td width=35% class=TableBody1><b> 无门无派 </b></td> <td class=TableBody1 width=15% align=right>登录次数:</td> <td width=35% class=TableBody1><b>6</b> </td> </tr> <tr> <td class=TableBody1 width=15% align=right>生命力:</td> <td width=35% class=TableBody1><b>113</b></td> <td width=15% align=right class=TableBody1>上次登录:</td> <td width=35% class=TableBody1><b>2006-08-17 23:51:49</b></td> </tr> <tr> <td width="50%" class="TableBody1" colspan="2" align="center"><b>目前不在站上</b></td> <td width=15% align=right class=TableBody1>最后来访IP:</td> <td width=35% class=TableBody1><b>59.64.240.*</b></td> </tr> </table> <br> <form method="GET" action="dispuser.php"> <table align=center><tr><td> 请输入用户名: <input type="text" name="id">&nbsp;<input type="submit" value="查询用户"> </td></tr></table> </form> <p> <table cellSpacing="0" cellPadding="0" border="0" align="center"> <tr> <td align="center"> <a href="http://wforum.aka.cn/" target="_blank"><img border="0" src="images/wforum.gif"/></a> <a href="http://dev.kcn.cn/" target="_blank"><img border="0" src="images/poweredby.gif"/></a>&nbsp;&nbsp;<br/> <nobr>Powered by wForum Version 0.9</nobr> </td> <td> <table cellSpacing="0" cellPadding="0" border="0" align="center"> <tr> <td align="center" nowrap="nowrap"> <a href="http://www.aka.cn/" target="_blank">阿卡信息技术(北京)有限公司</a> & <a href="http://dev.kcn.cn/" target="_blank">KBS 开发组</a> 版权所有 2005-2006 <br/><a href="http://wforum.zixia.net/" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#6000CC"><b>wForum</b></font></a> <a href="http://www.zixia.net/" target="_blank"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#6000CC"><b>@zixia.net</b></font></a> , 页面执行时间:5.284毫秒 </td> </tr> </table> </td> </tr> <tr> <td colspan="2"></td> </tr> </table></p> <br/> <br/> </body> </html>
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
Lonhero机器人#1 · 2006/8/25
【 在 foXXu 的大作中提到: 】 : email:xunan586@gmail.com 帮你模仿它写了个[em22] 附件(61.3KB) PostNum.rar
xnonx机器人#2 · 2006/8/25
【 在 Lonhero 的大作中提到: 】 : 帮你模仿它写了个[em22] : 呵呵,C#处理字符串真是得天独厚啊~ 我用的是VC++,呵呵 附件(68.7KB) PostNum.rar
xnonx机器人#3 · 2006/8/25
【 在 xnonx 的大作中提到: 】 : 呵呵,C#处理字符串真是得天独厚啊~ : 我用的是VC++,呵呵 主贴中的程序,粗心,把tab顺序弄乱了,这里修正过了 附件(444KB) PostNum.exe
NPC机器人#4 · 2006/8/26
【 在 coolwc 的大作中提到: 】 : 。。。。呼唤dephi版 delphi version... 附件(272.3KB) PostNum.rar
coolfantasy机器人#5 · 2006/8/26
Perl版 #!/usr/bin/perl #=============================================================================== # # FILE: show.pl # # USAGE: ./show.pl # # DESCRIPTION: XXX # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Cool # COMPANY: BYR # VERSION: 1.0 # CREATED: 08/26/2006 07:14:43 PM CST # REVISION: --- #=============================================================================== use strict; use warnings; use LWP::Simple; unless($ARGV[0]) { die "Usage:show.pl [id]"; } my $url = "http://forum.byr.edu.cn/wForum/dispuser.php?id=" . $ARGV[0]; my $content = get($url); if($content =~ /<td width=35% class=TableBody1><b>(\d*?)<\/b> 篇<\/td>/sm) { print "The number of posted articles by $ARGV[0] is:$1\n"; } else { print "No such user id\n"; }