| 30 |
" \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[1;37m第 \033[31m%2d \033[37m名 版块 : \033[33m%s%s \033[37m【\033[32m%s \033[37m】 \033[35m%s%s \r\n". |
| 31 |
" \033[37m 标题 : \033[44;37m%s%s \033[0;40;37m\r\n", |
" \033[37m 标题 : \033[44;37m%s%s \033[0;40;37m\r\n", |
| 32 |
$i++, $row["sname"], str_repeat(" ", 20 - strlen($row["sname"])), |
$i++, $row["sname"], str_repeat(" ", 20 - strlen($row["sname"])), |
| 33 |
strftime("%a %d %H:%M:%S", strtotime($row["sub_dt"])), |
strftime("%b %d %H:%M:%S", strtotime($row["sub_dt"])), |
| 34 |
str_repeat(" ", 16 - strlen($row["username"])), |
str_repeat(" ", 16 - strlen($row["username"])), |
| 35 |
$row["username"], substr($row["title"],0,60), |
$row["username"], substr($row["title"],0,60), |
| 36 |
str_repeat(" ", 60 - strlen($row["title"])) |
str_repeat(" ", 60 - strlen($row["title"])) |
| 41 |
|
|
| 42 |
mysql_close($db_conn); |
mysql_close($db_conn); |
| 43 |
|
|
|
$buffer .= "\r\n"; |
|
|
|
|
| 44 |
if (($fp=fopen($cache_path,"w"))) |
if (($fp=fopen($cache_path,"w"))) |
| 45 |
{ |
{ |
| 46 |
fwrite($fp,$buffer); |
fwrite($fp,$buffer); |