找回密码
 立即注册
科技快报网 首页 科技快报 IT资讯 查看内容

discuz门户发布全文RSS方法

2017-10-12 16:35:00 来自: 科技快报网

本站www.citreport.com亲测成功,本站已经被凤凰号,网易号等自媒体平台成功抓取。


找到/source/module/portal/portal_rss.php

if($catarray) {
    $alldata = C::t('portal_rsscache')->fetch_all_by_catid($catarray, $num);
    if($alldata) {
        foreach($alldata as $article) {
            if(TIMESTAMP - $article['lastupdate'] > $ttl * 60) {
                updatersscache($num);
                break;
            } else {
                list($article['description'], $attachremote, $attachfile, $attachsize) = explode("\t", $article['description']);
                if($attachfile) {
                    if($attachremote) {
                        $filename = $_G['setting']['ftp']['attachurl'].'portal/'.$attachfile;
                    } else {
                        $filename = $_G['siteurl'].$_G['setting']['attachurl'].'portal/'.$attachfile;
                    }
                }
                echo     "    \n".
                    "      ".$article['subject']."\n".
                    "      $_G[siteurl]".($rewriteflag ? rewriteoutput('portal_article', 1, '', $article[aid]) : "portal.php?mod=view&aid=$article[aid]")."\n".
                    "      \n".
                    "      ".dhtmlspecialchars($article['catname'])."\n".
                    "      ".dhtmlspecialchars($article['author'])."\n".
                    ($attachfile ? ''."\n" : '').
                    "      ".gmdate('r', $article['dateline'])."\n".
                    "   

  免责声明:本网站内容由网友自行在页面发布,上传者应自行负责所上传内容涉及的法律责任,本网站对内容真实性、版权等概不负责,亦不承担任何法律责任。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,并请自行核实相关内容。本站不承担此类作品侵权行为的直接责任及连带责任。如若本网有任何内容侵犯您的权益,请及时联系我们,本站将会在24小时内处理完毕。

发布者:admin

相关阅读

微信公众号
意见反馈 科技快报网微信公众号