サマリ | WebLog RSS Feed plugin based on rss10.inc.php |
---|---|
リビジョン | 1.9 |
対応バージョン | 1.4 |
投稿者 | Candyz |
投稿日 | 2003-10-08 (WED) 01:16:59 |
[./?cmd=rssweblog]
RSS Feed:[./?cmd=rssweblog http://pukiwiki.sourceforge.jp/image/rss.png]
add below to pukiwiki.ini.php
///////////////////////////////////////////////// // for WebLog // Set the WebLog FrontPage $weblog_page = 'WebLog'; // Set the WebLog Title $weblog_page_title = 'My WebLog';
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>