自作プラグイン/rssweblog.inc.php
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
**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%...
#contents
*** 使用法 [#h96968b7]
[./?cmd=rssweblog]
*** 使用例 [#ebb14051]
RSS Feed:[./?cmd=rssweblog http://pukiwiki.sourceforge.j...
***必要設定 [#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 genera...
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("/...
{
$recent_pages[$page] = get_fileti...
}
}
//
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 '...
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 '...
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%...
#contents
*** 使用法 [#h96968b7]
[./?cmd=rssweblog]
*** 使用例 [#ebb14051]
RSS Feed:[./?cmd=rssweblog http://pukiwiki.sourceforge.j...
***必要設定 [#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 genera...
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("/...
{
$recent_pages[$page] = get_fileti...
}
}
//
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 '...
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 '...
flock($fp,LOCK_EX);
fclose($fp);
// end by candyz }
// create RecentChanges
<below cut>
***ダウンロード [#y39cdce7]
-&ref(rssweblog.inc.php);←提供中
***コメント [#l32fd8f2]
#comment
ページ名: