connect(); if (is_int($id)) {die ("非法操作!");} //判断$id值是否合法。 ?>
首页 -> 家电资料 -> 家电资料文章内容
Query($strQuery); if ($db->num_rows()==0) {die ("非法操作!");} $db->next_record(); list ($id,$zhuanti_id,$column_id,$title,$reads,$free,$status,$post_time,$Unix_time,$editor,$validity, $title_id,$img_name,$img_pos,$content,$fromto) =$db->Record; } ?>
";} 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 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 "";} 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); if ($validity==1) { $minus=$currenttime-$currenttime1-604800; } else if ($validity==2) { $minus=-1; } else if ($validity==3) { $minus=$currenttime-$currenttime1-1209600; } else if ($validity==4) { $minus=$currenttime-$currenttime1-2592000; } if ($minus>0) { if ($session_member_regid == "") { echo substr(nl2br($content),0,512)."……"; echo "

您还没有登录,请在下面窗口中输入您的帐号及密码(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来自敌对的网站"; } ?>
    ("; echo $fromto; echo")"; } else { //echo "11"; } ?>
中国家电网推荐
 相关文章
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; echo "· $title
"; } } } ?>
Query($strQuery); ?>