--- lbbs/utils/bin/gen_top.php 2004/10/23 08:22:25 1.3 +++ lbbs/utils/bin/gen_top.php 2005/03/13 09:06:27 1.5 @@ -1,4 +1,4 @@ -#!/usr/local/bin/php +#!/usr/local/php/bin/php =10". " and (bbs.sub_dt >= subdate(now(),interval '7' day))". " order by bbs.excerption desc,bbs.view_count+bbs.reply_count desc,". - "bbs.transship limit 10",$db_conn); + "bbs.transship limit 10",$db_conn) + or die ("Query data error"); $i = 1; while ($row=mysql_fetch_array($rs)) @@ -30,7 +30,7 @@ " \033[1;37mµÚ \033[31m%2d \033[37mÃû °æ¿é : \033[33m%s%s \033[37m¡¾\033[32m%s \033[37m¡¿ \033[35m%s%s \r\n". " \033[37m ±êÌâ : \033[44;37m%s%s \033[0;40;37m\r\n", $i++, $row["sname"], str_repeat(" ", 20 - strlen($row["sname"])), - strftime("%a %d %H:%M:%S", strtotime($row["sub_dt"])), + strftime("%b %d %H:%M:%S", strtotime($row["sub_dt"])), str_repeat(" ", 16 - strlen($row["username"])), $row["username"], substr($row["title"],0,60), str_repeat(" ", 60 - strlen($row["title"]))