File: hyperapplet.php

package info (click to toggle)
phpwiki 1.3.14-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,716 kB
  • ctags: 23,548
  • sloc: php: 88,295; sql: 1,476; sh: 1,378; perl: 765; makefile: 602; awk: 28
file content (21 lines) | stat: -rwxr-xr-x 1,072 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php 
/* Download hyperapplet.jar (or hyperwiki.jar) and GraphXML.dtd from 
 *   http://hypergraph.sourceforge.net/download.html
 *   and place it into your theme directory.
 * Include this php file and adjust the width/height.
 * The static version requires a dumped "LinkDatabase.xml" via 
 *   cd themes/default; wget http://localhost/wiki/index.php/LinkDatabase?format=xml -O LinkDatabase.xml
 * into the same dir as hyperapplet.jar
 */
global $WikiTheme;
?>
<applet code="hypergraph.applications.hexplorer.HExplorerApplet.class" align="baseline" 
        archive="<?= $WikiTheme->_finddata("hyperapplet.jar") ?>"
        width="160" height="360">
<?php // the dynamic version: ?>
  <!--param name="file" value="<?= WikiURL("LinkDatabase", array('format'=>'xml')) ?>" /-->
<?php // The faster static version: dump it periodically ?>
  <param name="file" value="<?= $WikiTheme->_finddata("LinkDatabase.xml") ?>" />
  <!--param name="properties" value="<?= $WikiTheme->_finddata("hwiki.prop") ?>" /-->
  <param name="center" value="<?= $page->getName() ?>" />
</applet>