3 * PukiWiki ls¥×¥é¥°¥¤¥ó
5 * CopyRight 2002 Y.MASUI GPL2
6 * http://masui.net/pukiwiki/ masui@masui.net
8 * $Id: ls.inc.php,v 1.6 2003/01/31 01:49:35 panda Exp $
11 function plugin_ls_convert()
15 $aryargs = func_num_args() ? func_get_args() : array();
17 $with_title = (array_search('title',$aryargs)!==FALSE);
21 $prefix = $vars['page'].'/';
24 foreach (get_existpages() as $page) {
25 if (strpos($page,$prefix) === 0) {
31 foreach ($pages as $page) {
34 list($comment) = get_source($page);
35 $comment = '- ' . ereg_replace('^[-*]+','',$comment);
37 $ls[] = "-[[$page]] $comment";
40 return convert_html($ls);