2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
5 // $Id: touchgraph.inc.php,v 1.1 2003/04/13 07:48:04 arino Exp $
7 // TouchGraph http://www.touchgraph.com/index.html
10 function plugin_touchgraph_action()
12 header('Content-type: text/plain');
13 plugin_touchgraph_ref();
14 // plugin_touchgraph_rel();
18 function plugin_touchgraph_rel()
20 foreach (get_existpages() as $page)
22 if (file_exists(CACHE_DIR.encode($page).'.rel'))
24 $data = file(CACHE_DIR.encode($page).'.rel');
25 echo mb_convert_encoding($page.' '.str_replace("\t",' ',trim($data[0]))."\n",'Shift_JIS',SOURCE_ENCODING);
29 function plugin_touchgraph_ref()
31 foreach (get_existpages() as $page)
33 if (file_exists(CACHE_DIR.encode($page).'.ref'))
35 $data = file(CACHE_DIR.encode($page).'.ref');
37 foreach ($data as $line)
39 list($name) = explode("\t",$line);
42 echo mb_convert_encoding("$node\n",'Shift_JIS',SOURCE_ENCODING);