**rssweblog.inc.php [#o15df9d2]
|RIGHT:100|LEFT:360|c
|~サマリ|WebLog RSS Feed plugin based on rss10.inc.php|
|~リビジョン|1.9|
|~対応バージョン|1.4|
|~投稿者|[[Candyz]]|
|~投稿日|&new{2003-10-08 (WED) 01:16:59};|
*** 概要 [#w096e137]
-WebLog RSS Feed plugin
-[[My Demo Site>http://pukiwiki.kandix.idv.tw/?%E7%B6%B2%E8%AA%8C]]

#contents
*** 使用法 [#h96968b7]
 [./?cmd=rssweblog]
*** 使用例 [#ebb14051]
 RSS Feed:[./?cmd=rssweblog http://pukiwiki.sourceforge.jp/image/rss.png]
***必要設定 [#i4838859]
-pukiwiki.ini.php
~add below to pukiwiki.ini.php
 /////////////////////////////////////////////////
 // for WebLog
 // Set the WebLog FrontPage
 $weblog_page = 'WebLog';
 // Set the WebLog Title
 $weblog_page_title = 'My WebLog';
-file.php
~modify file.php at function put_lastmodified() to generate file weblogrecent.dat
 function put_lastmodified()
 {
        global $maxshow,$whatsnew,$non_list,$autolink;
        global $remote_hostname;
        // by candyz {
        global $weblog_page;
        // end by candyz }
        $pages = get_existpages();
        $recent_pages = array();
        foreach($pages as $page)
        {
                if ($page != $whatsnew and !preg_match("/$non_list/",$page))
                {
                        $recent_pages[$page] = get_filetime($page);
                }
        }
        //
        arsort($recent_pages,SORT_NUMERIC);
        // create recent.dat (for recent.inc.php)
        $fp = fopen(CACHE_DIR.'recent.dat','w')
                or die_message('cannot write cache file '.CACHE_DIR.'recent.dat<br />maybe permission is not writable or filename is too long');
        flock($fp,LOCK_EX);
        foreach ($recent_pages as $page=>$time)
        {
                fputs($fp,"$time\t$page\n");
        }
        flock($fp,LOCK_UN);
        fclose($fp);
        // by candyz {
        // create weblogrecent.dat
        $fp = fopen(CACHE_DIR.'weblogrecent.dat','w')
                or die_message('cannot write cache file '.CACHE_DIR.'weblogrecent.dat<br />maybe permission is not writable or filename is too long');
        flock($fp,LOCK_EX);
        fclose($fp);
        // end by candyz }
        // create RecentChanges
        <below cut>
***ダウンロード [#y39cdce7]
-&ref(rssweblog.inc.php);←提供中

***コメント [#l32fd8f2]
- http://google.com -- [[Knoxwell]] &new{2007-09-15 (土) 21:01:46};

#comment

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u12. HTML convert time: 0.059 sec.

OSDN