require ("../../conn.php");
require ("../../fun_liu.php");
$id=$HTTP_GET_VARS['id'];
$now=date(Y)."-".date(m)."-".date(d).date(h).":".date(m).":".date(s);
$id0=$HTTP_POST_VARS[id0];
$reid=$HTTP_POST_VARS[reid];
$type=$HTTP_POST_VARS[type];
$content=$HTTP_POST_VARS[content];
$username=$HTTP_POST_VARS[username];
if($reid){
if(substr($_SERVER['HTTP_REFERER'],0,15)=="http://www.8264"){
$wtime=date("Y-m-dH:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',$reid)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}
}else{
if($type=="add"){
if(substr($_SERVER['HTTP_REFERER'],0,15)=="http://www.8264"){
$wtime=date("Y-m-dH:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re) values('$username','$content',9,$id0,'$wtime',0)";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}
}
}
?>
户外市场咨询-中国户外运动经济研究中心--调查报告