3 * PukiWiki versionlist¥×¥é¥°¥¤¥ó
5 * CopyRight 2002 S.YOSHIMURA GPL2
6 * http://masui.net/pukiwiki/ yosimura@excellence.ac.jp
8 * $Id: versionlist.inc.php,v 1.3 2003/01/27 05:38:47 panda Exp $
11 function plugin_versionlist_convert()
13 global $vars, $script;
14 $SCRIPT_DIR = array("./","./plugin/");
15 /* õº÷¥Ç¥£¥ì¥¯¥È¥êÀßÄê¡£ËÜÅö¤Ï¡¢pukiwiki.ini.php ¤«¤Ê */
18 $aryargs = func_get_args();
24 foreach($SCRIPT_DIR as $sdir){
25 if ($dir = @dir($sdir)){
26 while($file = $dir->read()){
27 if ($file == ".." || $file == ".") continue;
28 if (!preg_match('/\.php$/i',$file)) continue;
31 $filenp = $sdir . $file;
32 $fd = fopen($filenp,'r');
34 if (preg_match('/Id:(.+),v (\d+\.\d+)/',fgets($fd,1024),$match)){
35 $comment = trim($match[1] . " -> " . $match[2]) ;
43 $lst .= "<li>$filenp => $comment\n";
52 return "<ul>$lst</ul>";