initial import
[roojs1] / buildSDK / renderWiki.php
1 <?php exit;
2 ?>
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7         <title>RooJS(1) Generated Documentation</title>
8 </head>
9
10
11 <html>
12 <head>
13   <title>RooJS (1) - Manual</title>
14
15     
16     <style>
17    body, table, td {
18        font:normal 11px tahoma,arial,helvetica,sans-serif;
19       }
20     
21     
22     </style>
23 <a href="http://www.akbkhome.com/roojs1/docs" target="_top"><h1>  View Documentation Interface  </h1></a>
24
25 <?php
26 // load the class file
27  set_include_path('/home/alan/Text_Wiki-1.2.0');
28 require_once 'Text/Wiki.php';
29  
30
31 $wiki =& new Text_Wiki();
32  
33  
34 $text = file_get_contents(dirname(__FILE__).'/wiki_index.txt');
35 // transform the wiki text into XHTML
36 $xhtml = $wiki->transform($text, 'Xhtml');
37 $xhtml = str_replace( 'onclick="window.open(this.href, \'_blank\'); return false;"', '', $xhtml);
38 $xhtml = str_replace( '<p>&lt;TSTART&gt;</p>', '<TABLE><TR><TD valign="top">', $xhtml);
39 $xhtml = str_replace( '&lt;TSEP&gt;<br />', '</TD><TD valign="top">', $xhtml);
40 $xhtml = str_replace( '<p>&lt;TEND&gt;</p>', '</TD></TR><TABLE>', $xhtml);
41
42
43
44 // display the transformed text
45 echo $xhtml;
46 ?>
47
48
49
50
51 </body>
52 </html>