require ("../../conn.php");
require ("../../fun_liu.php");
//========2006.9.5 liuming edit========
require("../../clean.php");
//==========
$id=cleanValue($HTTP_GET_VARS['id']);//2006.9.5 加入cleanValue函数
$now=date(Y)."-".date(m)."-".date(d).date(h).":".date(m).":".date(s);
$id0=cleanValue($HTTP_POST_VARS[id0]);//2006.9.5 加入cleanValue函数
$reid=cleanValue($HTTP_POST_VARS[reid]);//2006.9.5 加入cleanValue函数
$type=cleanValue($HTTP_POST_VARS[type]);//2006.9.5 加入cleanValue函数
$content=cleanValue($HTTP_POST_VARS[content]);//2006.9.5 加入cleanValue函数
$username=cleanValue($HTTP_POST_VARS[username]);//2006.9.5 加入cleanValue函数
$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);
}
}
}
}
?>
《山野》杂志
|
|
|
 |
|
《山野》杂志社汇款方式:
银行汇款
户 名:
北京创美思达广告有限公司
开户行:
中国银行北京龙潭湖支行
帐 号:
8097 1001 9108 0910 01
邮局汇款
地址:北京市崇文区龙潭路乙3号伟图大厦303室
邮编:100061
收款人:《山野》杂志社 或 北京创美思达广告有限公司
联系方式:
电 话:010-67104538 67152909
传 真:010-67104538
发行部联系人:
毕 建
E-mail:bj81wh@126.com
石慧
E-mail:shi-hui@163.com
|
|
|
 |
|
|
|
|
|
|