echo $title;?> |
|
文章时间: echo $post_time?>
if ($fromto != "")
{
echo" 来源:";
echo"$fromto";
}
else {}
?> |
|
|
|
|
|
//===============文章内容开始==========================================
$ip = getenv("REMOTE_ADDR");
$ip1=substr($ip, 0, 9);
$ip2='211.96.19 ';
$ip100=strcmp($ip,$ip2);
//echo $ip100.$ip1;
if ($ip100!=0)
{if ($free=="N")
{if (strlen(trim($img_name))!=0){echo "";}
if (trim($keywords)!=""){$content=str_replace($keywords,"".$keywords."",$content);}
if ($session_member_regid == "")
{echo " 错误:很报歉给您的浏览带来问题,产生此条警告的原因是您未拥有阅读本文章的权限,请注册为会员并使用会员帐号登录。";
include("$includePath/loginin.inc");
}
else
{
$strQuery="select payment_n,howmuch,use_data from members where userid=$session_member_regid";
$db->Query($strQuery);
$db->next_record();
list ($payment_n,$howmuch,$use_data)=$db->Record;
$currenttime =time();
$year=substr($use_data, 0, 4);
$month=substr($use_data, 5, 2);
$day=substr($use_data, 8, 2);
$H=substr($use_data, 11, 2);
$i=substr($use_data, 14, 2);
$s=substr($use_data, 17, 2);
$currenttime1=mktime($H,$i,$s,$month,$day,$year);
if ($howmuch==1)
{
$howmuch_1=86400; //一天
}
else if ($howmuch==2)
{
$howmuch_1=2592000; //30天==一个月
}
else if ($howmuch==3)
{
$howmuch_1=7948800; //92天==3个月
}
else if ($howmuch==4)
{
$howmuch_1=15724800; //182天==半年
}
else if ($howmuch==5)
{
$howmuch_1=31536000; //365天==一年
}
else if ($howmuch==9)
{
$howmuch_1=31536000000; //无期
}
else {
$howmuch_1=0;
}
$minus=$currenttime1+$howmuch_1-$currenttime;
if ($minus<0&&$payment_n<>1)
{
echo ;
echo substr(nl2br($content),0,512)."……";
echo " 错误:很报歉对您的浏览带来不便,出现此提示的原因可能是:您己经以会员身份登录,但此帐号未订购新闻服务,请确认您的服务项目(error 01)";
}
else if ($minus>0&&$payment_n<>1)
{
echo substr(nl2br($content),0,512)."……";
echo " 错误:很报歉对您的浏览带来不便,出现此提示的原因可能是:您己经以会员身份登录,但此帐号未订购新闻服务,请确认您的服务项目(error 02)";
}
else if ($minus<0&&$payment_n==1)
{
echo substr(nl2br($content),0,512)."……";
echo " 尊敬的会员,你的会员权限己经过期,请续费后再阅读(error 03)";
}
else{
echo ;
echo nl2br($content);
}
}
}
else
{if (strlen(trim($img_name))!=0){echo "";}
else{echo "";}
if (trim($keywords)!=""){$content=str_replace($keywords,"".$keywords."",$content);}
$currenttime =time();
$year=substr($post_time, 0, 4);
$month=substr($post_time, 5, 2);
$day=substr($post_time, 8, 2);
$H=substr($post_time, 11, 2);
$i=substr($post_time, 14, 2);
$s=substr($post_time, 17, 2);
$currenttime1=mktime($H,$i,$s,$month,$day,$year);
$minus=$currenttime-$currenttime1-241920000;
if ($minus>0)
{ if ($session_member_regid == "")
{
echo substr(nl2br($content),0,512)."……";
echo "错误:很报歉给你浏览带来不便,出现些提示的原因可能是:您还没有登录,请在下面窗口中输入您的帐号及密码或及时与我们会员服务部联系:020-85512316(error 00)";
include("$includePath/loginin.inc");
}
else
{
$strQuery="select payment_n,howmuch,use_data from members where userid=$session_member_regid";
$db->Query($strQuery);
$db->next_record();
list ($payment_n,$howmuch,$use_data)=$db->Record;
$currenttime =time();
$year=substr($use_data, 0, 4);
$month=substr($use_data, 5, 2);
$day=substr($use_data, 8, 2);
$H=substr($use_data, 11, 2);
$i=substr($use_data, 14, 2);
$s=substr($use_data, 17, 2);
$currenttime1=mktime($H,$i,$s,$month,$day,$year);
if ($howmuch==1)
{
$howmuch_1=86400; //一天
}
else if ($howmuch==2)
{
$howmuch_1=2592000; //30天==一个月
}
else if ($howmuch==3)
{
$howmuch_1=7948800; //92天==3个月
}
else if ($howmuch==4)
{
$howmuch_1=15724800; //182天==半年
}
else if ($howmuch==5)
{
$howmuch_1=31536000; //365天==一年
}
else if ($howmuch==9)
{
$howmuch_1=31536000000; //无期
}
else {
$howmuch_1=0;
}
$minus=$currenttime1+$howmuch_1-$currenttime;
if ($minus<0&&$payment_n<>1)
{
echo substr(nl2br($content),0,512)."……";
echo "
错误:很报歉对您的浏览带来不便,出现此提示的原因可能是:您己经以会员身份登录,但此帐号未订购新闻服务,请确认您的服务项目(error 11)";
}
else if ($minus>0&&$payment_n<>1)
{
echo substr(nl2br($content),0,512)."……";
echo " 错误:很报歉对您的浏览带来不便,出现此提示的原因可能是:您己经以会员身份登录,但此帐号未订购新闻服务,请确认您的服务项目(error 12)";
}
else if ($minus<0&&$payment_n==1)
{
echo substr(nl2br($content),0,512)."……";
echo " 尊敬的会员,你的会员权限己经过期,请续费后阅读。(error 13)";
}
else{
echo ;
echo nl2br($content);
}
}
}
else{
echo ;
echo nl2br($content);
}
}
}
else
{echo"这个IP来自意外的网站";
}
?> //===============文章内容结束==========================================
?> if ($editor != "cheaa")
{echo" 编辑:";
echo"$editor";
}
else {
echo" 编辑:";
echo"eaonline";
}
?>
中国家电在线著作权声明 中国家电在线一直尊重作品的版权,网站的所有内容均由其内容合作方提供。转载依据最高人民法院《关于审理涉及计算机网络著作权纠纷案件适用法律若干问题的解释》(法释[2000]48号)第三条之规定。如果您发现本网站已转载或摘编了您拥有著作权的作品并对转载有疑议,或对作品的真实性持有其它不同观点,请您发送电子邮件至 中国家电在线内部信息部。 中国家电在线在网上传输的所有内容均由内容合作方提供,该等内容合作方负责其所发布的内容的真实性、准确性和合法性。 |
|
|
|
【&url=http://www.eaonline.com.cn echo $REQUEST_URI;?>>推荐】
【打印】
【声明】
【评论】
|
|
|
|
查看评论 |
if($submit){
if ($HTTP_POST_VARS['authnum'] == $HTTP_POST_VARS['authinput'])
{
if ($action=="add")
{
$wjid = $id;
$fromip= getenv("REMOTE_ADDR");
$currenttime = date('Y-m-d H:i:s', time());
$strQuery="insert into cheaapl
(xdwjid,name,time,neirong,fromip)
values
('$wjid','$name','$currenttime','$neirong','$fromip')";
$db->query($strQuery);
for ($i=0;$i<3;$i++) {echo " ";}
echo "";
}
}
}
?>
|
|
|
$strQuery="select pl_id,neirong,name,time from cheaapl where sfxs='Y' and xdwjid='$id'";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_neirong,$this_name,$this_time)=$db->Record;
if (strlen($this_neirong)>500){$this_neirong=substr($this_neirong,1,499);}
echo "  $this_name  在 $this_time  说:    $this_neirong ";
}
?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$strQuery="select ids from relations where title_id=$id";
$db->Query($strQuery);
if ($db->num_rows()!=0) {
$db->next_record();
list ($ids)=$db->Record;
##===形成数组===
$ids=strtok($ids,"/");
$arr[]=$ids;
while ($ids){
$ids=strtok("/");
$arr[]=$ids;
}##===
while (list($k,$v)=each($arr)){
if ($v!=""){
$strQuery="select title,post_time from titles where id=$v";
$db->Query($strQuery);
$db->next_record();
list ($title,$post_time)=$db->Record;
if (strlen($title)>31){$title=substr($title,0,30);}
echo "· $title ";
}
}
}
?> |
|
|
|
|
|
|
|
|
|
焦点新闻 |
$strQuery="select id,title,post_time from titles where status='Y' and zhuanti_id=13 order by titles.id desc limit 0,6";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_title,$this_post_time)=$db->Record;
$show_time=substr($this_post_time,5,5);
echo "·$this_title[$show_time] ";
}?> |
精彩专题 |
$strQuery="select id,zttitle,img_name1,ztjj from ztlilin where status='Y' order by id desc limit 0,1";
$db->query($strQuery);
while ($db->next_record()){
list($id,$zttitle,$img_name1,$ztjj)=$db->Record;
}?> echo $zttitle ?> echo "$ztjj" ?>[进入]
$strQuery="select id,zttitle,img_name1,ztjj from ztlilin where status='Y' order by id desc limit 1,5";
$db->query($strQuery);
while ($db->next_record()){
list($id,$zttitle)=$db->Record;
echo "·$zttitle"; }?> |
各地动态 |
$strQuery="select id,title,post_time from titles where status='Y' and zhuanti_id=2
order by titles.id desc limit 0,6";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_title,$this_post_time)=$db->Record;
$show_time=substr($this_post_time,5,5);
if (strlen($this_title)>41){$this_title=substr($this_title,0,40);}
echo "·$this_title";
echo "[$show_time] ";
}?> |
使用技巧 |
$strQuery="select id,title,post_time from titles where status='Y' and zhuanti_id=42 order by titles.id desc limit 0,8";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_title,$this_post_time)=$db->Record;
$show_time=substr($this_post_time,5,5);
echo "· $this_title[$show_time] ";
}
?> |
产品导购 |
$strQuery="select id,title,post_time from titles where status='Y' and zhuanti_id=3 order by titles.id desc limit 0,8";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_title,$this_post_time)=$db->Record;
$show_time=substr($this_post_time,5,5);
echo "·$this_title[$show_time] ";
}
?> |
|
一周点击率排行 |
$nowtime=time();
$frontweek=$nowtime-604800;
$strQuery="select id,title,post_time from titles where status='Y' and Unix_time>$frontweek and Unix_time<$nowtime order by titles.reads desc limit 0,8";
$db->query($strQuery);
while ($db->next_record()){
list($this_id,$this_title,$this_post_time)=$db->Record;
$show_time=substr($this_post_time,5,5);
echo "·$this_title ";
echo "[$show_time] ";
}?> |
|