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);
}
}
}
}
?>
Kailas 2007中国未登峰之“未名峰”攀登专题
|
|
|
| 5524峰位于四川省阿坝藏族羌族自治州理县毕棚沟旅游风景区深处,和半脊峰在同一条山脊,距离半脊峰约4公里,距离长坪沟穿越毕棚沟的垭口约2公里。属九寨沟米亚罗黄金旅游线,距离四川省会成都250余公里,成都出发至大本营约需五到七小时。交通极为便利,大本营通中国移动手机信号...[点击了解更多][我要评论] |
|
| 相关报道 |
|
| 5524峰视频 |
|
| Kailas其他未登峰报道 |
|
|
|
|