<?php
-// $Id: tb.inc.php,v 1.3 2003/08/06 05:49:50 arino Exp $
+// $Id: tb.inc.php,v 1.4 2003/08/20 10:55:36 arino Exp $
/*
* PukiWiki TrackBack ¥×¥í¥°¥é¥à
* (C) 2003, Katsumi Saito <katsumi@jo1upk.ymt.prug.or.jp>
break;
}
}
- return array('msg'=>'','body'=>'');
+ $pages = get_existpages(TRACKBACK_DIR,'.txt');
+
+ if (count($pages) == 0)
+ {
+ return array('msg'=>'','body'=>'');
+ }
+
+ return array(
+ 'msg' => 'trackback list',
+ 'body' => page_list($pages,'read',FALSE)
+ );
}
// TrackBack Ping ¥Ç¡¼¥¿Êݸ(¹¹¿·)
}
// TrackBack Ping ¤Î¥Ç¡¼¥¿¤ò¹¹¿·
- $filename = TRACKBACK_DIR.$tb_id.'.txt';
+ $filename = tb_get_filename($page);
$data = tb_get($filename);
$items = array(UTIME);
}
$items = '';
- foreach (tb_get(TRACKBACK_DIR.$tb_id.'.txt') as $arr)
+ foreach (tb_get(tb_get_filename($page)) as $arr)
{
$utime = array_shift($arr);
list ($url,$title,$excerpt,$blog_name) = array_map(
$tb_refer = sprintf($_tb_refer,"<a href=\"$script?$r_page\">'$page'</a>","<a href=\"$script\">$page_title</a>");
- $data = tb_get(TRACKBACK_DIR.$tb_id.'.txt');
+ $data = tb_get(tb_get_filename($page));
// ºÇ¿·ÈǤ«¤éÀ°Îó
usort($data,create_function('$a,$b','return $b[0] - $a[0];'));