/[LeafOK_CVS]/fenglin/bbs/top_user_gen.inc.php
ViewVC logotype

Contents of /fenglin/bbs/top_user_gen.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Thu Mar 20 03:35:26 2025 UTC (11 months, 4 weeks ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +0 -0 lines
FILE REMOVED
Remove legacy feature

1 <?
2 $rs=mysql_query("select bbs.UID,count(*)*10+".
3 "sum(bbs.excerption*100+".
4 "bbs.ontop*50+bbs.reply_count/10+".
5 "bbs.view_count/100+bbs.length/1000)".
6 " as c_order,bbs.username from bbs".
7 " inner join section_config on bbs.SID=section_config.SID".
8 " where bbs.TID=0 and bbs.visible and bbs.transship=0 and".
9 " section_config.read_user_level=0 and section_config.write_user_level=0 and".
10 " section_config.exp_get".
11 " and section_config.recommend and (bbs.sub_dt >= ".
12 "subdate(now(),interval '14' day))".
13 " group by bbs.UID,bbs.username having c_order>=100".
14 " order by c_order desc limit 10")
15 or die("Query data error!");
16
17 $order=1;
18 while ($row=mysql_fetch_array($rs))
19 {
20 ?>
21 第<? echo str_repeat("&nbsp;",3-strlen($order)).$order; ?>&nbsp;名&nbsp;&nbsp;<? echo $row["username"]; ?><br>
22 <?
23 $order++;
24 }
25
26 mysql_free_result($rs);
27 ?>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1