2 /////////////////////////////////////////////////
3 // PukiWiki - Yet another WikiWikiWeb clone.
5 // $Id: touchgraph.inc.php,v 1.4 2004/07/31 03:09:20 henoheno Exp $
7 // TouchGraph WikiBrowserÍѤΥ¤¥ó¥Ç¥Ã¥¯¥¹¤òºî¤ê¤Þ¤¹¡£
10 // java -Dfile.encoding=EUC-JP \
11 // -cp TGWikiBrowser.jar;BrowserLauncher.jar com.touchgraph.wikibrowser.TGWikiBrowser \
12 // http://<pukiwiki site>/pukiwiki.php?plugin=touchgraph \
13 // http://<pukiwiki site>/pukiwiki.php? \
16 // TouchGraph http://www.touchgraph.com/index.html
18 function plugin_touchgraph_action()
20 header('Content-type: text/plain');
21 plugin_touchgraph_rel();
22 // plugin_touchgraph_ref(); // reverse
26 function plugin_touchgraph_rel()
28 foreach (get_existpages() as $page)
30 if (file_exists(CACHE_DIR.encode($page).'.rel'))
32 $data = file(CACHE_DIR.encode($page).'.rel');
33 echo $page.' '.str_replace("\t",' ',trim($data[0]))."\n";
37 function plugin_touchgraph_ref()
39 foreach (get_existpages() as $page)
41 if (file_exists(CACHE_DIR.encode($page).'.ref'))
43 $data = file(CACHE_DIR.encode($page).'.ref');
45 foreach ($data as $line)
47 list($name) = explode("\t",$line);