function plugin_tb_output_htmllist($tb_id) { pkwk_common_headers(); echo 'This function had been removed now. It will be created soon.<br />' . "\n"; echo 'Sorry for your inconvenience.'; exit; // ---- // Skeleton Logic global $script; global $_tb_date; $page = tb_id2page($tb_id); if ($page === false) { return false; } $data = tb_get(tb_get_filename($page)); // Sort: The first is the latest usort($data, create_function('$a,$b', 'return $b[0] - $a[0];')); $tb_body = ''; foreach ($data as $x) { if (count($x) != 5) { continue; } // Ignore incorrect record list($time, $url, $title, $excerpt, $blog_name) = $x; if ($title == '') { $title = 'no title'; } $time = date($_tb_date, $time + LOCALZONE); // May 2, 2003 11:25 AM $tb_body .= <<<EOD EOD; } // Output start pkwk_common_headers(); // BugTrack/466 Care for MSIE trouble // Logically correct, but MSIE will treat the data like 'file downloading' //header('Content-type: application/xhtml+xml; charset=UTF-8'); header('Content-type: text/html; charset=UTF-8'); // Works well $meta_content_type = pkwk_output_dtd(PKWK_DTD_XHTML_1_0_TRANSITIONAL, 'UTF-8'); $msg = <<<EOD <head> {$meta_content_type} </head> <body> {$script}?tb_id={$tb_id}<br /><br /> {$tb_body} </body> </html> EOD; echo mb_convert_encoding($msg, 'UTF-8', SOURCE_ENCODING); exit; }
function plugin_tb_mode_view($tb_id) { global $vars; $page = tb_id2page($tb_id); if ($page === FALSE) { return FALSE; } $vars['page'] = $page; // topicpath $retval = array(); // TrackBack list to aaaaa // aaaa への TrackBack 一覧 // $retval['msg'] = sprintf( _('TrackBack list to %s'), $page); $retval['msg'] = $page; $retval['body'] = plugin_tb_mode_view_set($page); return $retval; }