/[LeafOK_CVS]/lbbs/utils/bin/gen_top.php
ViewVC logotype

Diff of /lbbs/utils/bin/gen_top.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 by sysadm, Wed Dec 1 06:04:37 2004 UTC Revision 1.5 by sysadm, Sun Mar 13 09:06:27 2005 UTC
# Line 1  Line 1 
1  #!/usr/local/bin/php  #!/usr/local/php/bin/php
2  <?  <?
3          if (!isset($_SERVER["argc"]))          if (!isset($_SERVER["argc"]))
4                  $_SERVER["argc"] = 0;                  $_SERVER["argc"] = 0;
# Line 16  Line 16 
16          $rs = mysql_query(          $rs = mysql_query(
17                  " select bbs.title, sname, username, sub_dt".                  " select bbs.title, sname, username, sub_dt".
18                  " from bbs inner join section_config on".                  " from bbs inner join section_config on".
19                  " bbs.SID=section_config.SID inner join user_list on".                  " bbs.SID=section_config.SID where section_config.recommend".
                 " user_list.UID=bbs.UID where section_config.recommend".  
20                  " and bbs.TID=0 and bbs.visible and bbs.view_count>=10".                  " and bbs.TID=0 and bbs.visible and bbs.view_count>=10".
21                  " and (bbs.sub_dt >= subdate(now(),interval '7' day))".                  " and (bbs.sub_dt >= subdate(now(),interval '7' day))".
22                  " order by bbs.excerption desc,bbs.view_count+bbs.reply_count desc,".                  " order by bbs.excerption desc,bbs.view_count+bbs.reply_count desc,".
23                  "bbs.transship limit 10",$db_conn);                  "bbs.transship limit 10",$db_conn)
24                    or die ("Query data error");
25    
26          $i = 1;          $i = 1;
27          while ($row=mysql_fetch_array($rs))          while ($row=mysql_fetch_array($rs))


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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