<?
require_once("include/config.inc.php");
require_once('include/functions.inc.php');
$fid=intval($fid);
$tid=intval($tid);
$pid=intval($pid);
.........
if(!$C_errormsg) {
if($postid) {
$sql='select post_content,post_date,user_name from '.__TAB_POST__.' where
post_id='.$postid;
$result=$db->sql_query($sql);
$rows=$db->sql_fetchrow($result);
$qcontent=preg_replace("/\[quote\](.*)\[\/quote\]/is","",$rows['post_content']);
$qtime=date("Y-n-j G:i",$rows['post_date']);
$articlecontent='[quote][b]引用'.$rows['user_name'].'于'.$qtime."发表的文章:
[/b]\n".$qcontent."[/quote]\n";
}
....... |