$sql=$empire->query("insert into {$dbtbpre}danmaku_list(danmuid,type,username,userid,text,color,size,videotime,ip,time) values('$danmuid','$type','$author','$userid','$text','$color','$size','$videotime','$ip','$time');");
$total=fetch_memcache0("select count(*) as total from {$dbtbpre}danmaku_list where danmuid='$danmuid'",'Memcached','danmulistall',60);
$danmunum=$total[0]['total'];
$value=fetch_memcache0("select id,danmuid,type,username,userid,text,color,size,videotime,ip,time from {$dbtbpre}danmaku_list where danmuid='$danmuid' order by id desc limit 550",'Memcached','danmu',60);
foreach ($value as $k => $v){
$data[]=array(
'0'=>(float)$v['videotime'],
'1'=>$v['type'],
'2'=>$v['color'],
'3'=>$v['id'],
'4'=>$v['text'],
'5'=>$v['ip'],
'6'=>date('m-d H:i', $v['time']),
'7'=>$v['size'],
'8'=>$v['username'],
);
}
$responseData = array(
'code' => 23,
'danmuku' => $data,
'danum' =>$danmunum,
'name' =>$danmuid,
);
echo json_encode($responseData);
exit;
}elseif ($enews === 'report') { // 弹幕举报
$text = RepPostVar($_GET['text']);
$cid = $_GET['cid'];
$type = RepPostVar($_GET['type']);
$danmuid = RepPostVar($_GET['title']);
$userip = $ip?$ip:RepPostVar($_GET['user']);
$sql=$empire->query("insert into {$dbtbpre}danmaku_report(danmuid,username,userid,text,type,time,ip) values('$danmuid','$username','$userid','$text','$type','$time','$userip');");