自作プラグイン/rssweblog.inc.php
の編集
Top
/
自作プラグイン
/
rssweblog.inc.php
[
トップ
] [
編集
|
差分
|
履歴
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
Wikiを試したい方へ:
「この」Wikiは、
PukiWiki
のための公式Wikiです。
テスト書き込みなどは
お試しサイト
https://pukiwiki.osdn.jp/_trial/
をご利用ください
**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] #comment
**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] #comment
テキスト整形のルールを表示する
添付ファイル:
rssweblog.inc.php
2060件
[
詳細
]