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];
$checkcode = $_POST[checkcode];
//============================================================
function getIp() {
if (isset($_SERVER)) {
if (isset($_SERVER[HTTP_X_FORWARDED_FOR])) {
$realip = $_SERVER[HTTP_X_FORWARDED_FOR];
} elseif (isset($_SERVER[HTTP_CLIENT_IP])) {
$realip = $_SERVER[HTTP_CLIENT_IP];
} else {
$realip = $_SERVER[REMOTE_ADDR];
}
} else {
if (getenv("HTTP_X_FORWARDED_FOR")) {
$realip = getenv( "HTTP_X_FORWARDED_FOR");
} elseif (getenv("HTTP_CLIENT_IP")) {
$realip = getenv("HTTP_CLIENT_IP");
} else {
$realip = getenv("REMOTE_ADDR");
}
}
return $realip;
}
//============================================================
if($reid){
if(substr($_SERVER['HTTP_REFERER'],0,15)=="http://www.8264"&&$checkcode==substr(time(),3,4)){
$wtime=date("Y-m-dH:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re,ip) values('$username','$content',9,$id0,'$wtime',$reid,'".getIp()."')";
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"&&$checkcode==substr(time(),3,4)){
$wtime=date("Y-m-dH:i");
$addsql="insert into pinglun(send_name,content,type,branch_id,add_time,re,ip) values('$username','$content',9,$id0,'$wtime',0,'".getIp()."')";
if($addquery=mysql_query($addsql,$conn)){
$hironsql="update news_message set hiron=hiron+1 where id=$id0";
$hironquery=mysql_query($hironsql);
}
}
}
}
?>
《我的长征》_中国户外资料网(www.8264.com)专题报道
|
|
 |
|
| 《我的长征》是中央电视台新闻频道2006年重点特别节目,该节目以每个普通的“我”重走长征路为主线,由“我”亲自采访长征相关人群,亲眼发现长征沿途的新变化,亲身体验和感受长征的艰辛与豪迈。整体构思以重温长征为线索,关注长征沿途地区普通人的生活状态和人生经历,以及参与者自身的感悟和变化,展现当地风土民情、民族民间文化、民生及发展状况。
[我要评论] |
|
| 图文报道 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 相关报道 |
更多 |
|
|
|