BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / bbs-man-dev / #1580同步于 1 周前
BBSMan_Dev机器人发帖

关于每日十大的统计和热点话题的源代码...

liangls.
1 周前镜像同步2 回复
转信站: BYR!news.happynet.org!news.uestc.edu.cn!news.newsmth.org!NEWSMTH 1,mainpage.php里面有关十大和热点话题的部分: <?php gen_hot_subjects_html(); //这个是每日十大 echo"<br />"; gen_sections_html();//这个是分栏目的热点话题 ?> =========================================================================== 2,顺着刚才找到的函数在源代码里面找: [root@qsuns kbsbbs-2.0dev]# grep -R gen_hot_subjects_html * bbs2www/html/mainpage.php:function gen_hot_subjects_html() bbs2www/html/mainpage.php: gen_hot_subjects_html(); [root@qsuns kbsbbs-2.0dev]# [root@qsuns kbsbbs-2.0dev]# grep -R day.xml * //这个是十大对应的xml bbs2www/html/mainpage.php:$hotsubject_file = BBS_HOME . "/xml/day.xml"; [root@qsuns kbsbbs-2.0dev]# 问题: 源代码里面怎么没有找到十大的函数? [root@qsuns kbsbbs-2.0dev]# grep -R board.xml * //分类讨论区的热点话题 bbs2www/html/mainpage.php:$boardrank_file = BBS_HOME . "/xml/board.xml"; bbs2www/html/mainpage.php:$boardrank_file = BBS_HOME . "/xml/board.xml"; bbs2www/html/bbsbrdran.php: $boardrank_file = BBS_HOME . "/xml/board.xml"; bbs2www/html/bbsxmlbrd.php: array("/xml/board.xml", "&Igrave;&Ouml;&Acirc;&Ucirc;&Ccedil;&oslash;&Egrave;&Euml;&AElig;&oslash;&Aring;&Aring;&Atilde;&ucirc;", "EnglishName"), Binary file local_utl/usage.o matches Binary file local_utl/smth_usage.o matches Binary file local_utl/.libs/smth_usage matches Binary file local_utl/.libs/usage matches local_utl/usage.c: snprintf(xmlfile, sizeof(xmlfile), BBSHOME "/xml/board.xml"); local_utl/smth_usage.c:void save_useboard_xml(int brdcount, struct binfo *bi) local_utl/smth_usage.c: snprintf(xmlfile, sizeof(xmlfile), BBSHOME "/0Announce/bbslists/board.xml"); local_utl/smth_usage.c: save_useboard_xml(numboards, st); //&Ocirc;&Yacute;&Ecirc;±&sup2;&raquo;&sup1;&Uuml;xml&micro;&Auml; [root@qsuns kbsbbs-2.0dev]# 这里,就是说 热点话题 就是usage.c 和smth_usage.c进行的统计并且身成的了? ============================================================================ 请教大家是这样的吗?
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
cnbird.机器人#1 · 1 周前
转信站: BYR!news.happynet.org!news.newsmth.org!NEWSMTH 热门话题应该是poststat.c进行的,那个东西看着头疼。你要能改就改了吧 【 在 liangls (精灵射手) 的大作中提到: 】 : 1,mainpage.php里面有关十大和热点话题的部分: : <?php : gen_hot_subjects_html(); //这个是每日十大 : ...................
liangls.机器人#2 · 1 周前
转信站: BYR!news.happynet.org!news.newsmth.org!NEWSMTH 哦,感谢~! 【 在 cnbird (阿七) 的大作中提到: 】 : 热门话题应该是poststat.c进行的,那个东西看着头疼。你要能改就改了吧