d91d0c05d2ad5ce34f0667f8777ef97f50fd5471
[runtime.git] / scripts / silcdoc / gen_toc.php
1 <?php
2 /*
3
4   Author: Pekka Riikonen <priikone@silcnet.org>
5
6   Copyright (C) 2001 Pekka Riikonen
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2 of the License, or
11   (at your option) any later version.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   This generates the TOC for a specific section.
19
20 */
21 ?>
22
23 <div align="center">
24 <table cellpadding=2 cellspacing=0 border=0 width="99%" align=center>
25 <tr>
26 <td>
27 <font face="Helvetica,Arial,Sans-serif" size="+1">
28
29 <?php
30 /* Get the actual data for the page */
31 if (Is_Readable($page.".html"))
32   require $page.".html";
33 ?>
34
35 </font>
36 </td>
37 </tr>
38 </table>
39 </div>