冠富商务通中文社区

 找回密码
 立即注册
查看: 16|回复: 0
打印 上一主题 下一主题
收起左侧

[建站经验] 【百度新闻协议图片】-百度新闻协议 关于图片显示的问题

[复制链接]
跳转到指定楼层
楼主
发表于 2017-10-29 03:16:39 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
关键字描述:显示 问题 图片 关于 新闻 协议 百度 =700) window.open('http://files.jb51.net/file_images/cms/2009661552346877801.gif');"src="http://files.jb51.net/file_images/cms/2009661552346877801.gif"  border="0" alt="" /> 图片:
[attachment=16890] [attachment=16890]  [attachment=16890] ?php
require_once(dirname(__FILE__)./config.php);
if(empty($do)){
include './templets/baidunews.htm';
}else{
$baidunews = ?xml version=\1.0\ encoding=\gb18030\ ?\n;
$baidunews .= document\n;
$baidunews .= webSite$cfg_webname /webSite\n;
$baidunews .= webMaster$cfg_adminemail /webMaster\n;
$baidunews .= updatePeri$cfg_updateperi /updatePeri\n;
$limit = $cfg_baidunews_limit;
if($limit  100 || $limit  1) $limit = 100;
$query = select maintable.*, addtable.body, arctype.typename, arc.writer,arc.source
from xkzzz_full_search maintable
left join xkzzz_addonarticle addtable on addtable.aid=maintable.aid
left join xkzzz_arctype arctype on arctype.ID=maintable.typeid
left join xkzzz_archives arc on arc.ID=maintable.aid
where maintable.channelid=1 order by maintable.uptime desc limit $limit
;
$dsql-SetQuery($query);
$dsql-execute();
while($row = $dsql-getarray()){
  $title = htmlspecialchars($row['title']);
  
  if(strpos($row['url'],'http://') === false){
  $link = $cfg_basehost.$row['url'];
  }else{
  $link = $row['url'];
  }
  $link = htmlspecialchars($link);
  $description = htmlspecialchars($row['addinfos']);
  $description =str_replace(  ,, $description);//去除中文tab键产生的空白
  $text = trim($row['body']);
  //处理内容块;
  $text =nl2br($text );
  $text =strip_tags($text );
  $text  =str_replace(  ,, $text);
  $text  =str_replace(,, $text);
  $text  =str_replace(,, $text);
  $text  =str_replace(,-, $text);
  $text = preg_replace(/\ \;/i,  , $text );
            上一页12 下一页 阅读全文
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|关于我们|申请友链|Archiver|手机版|拘留所|冠富商务通

GMT+8, 2026-3-28 23:08 , Processed in 0.146009 second(s), 19 queries , Wincache On.

Powered by HCMS Version 2.0

© 2008-05-14 guanfu.net.cn

快速回复 返回顶部 返回列表