Merged silc_1_0_branch to trunk.
[silc.git] / scripts / silcdoc / gen_detail.php
index 4cf6e75c53813688437ffb058d51bf2f012556e3..f17fbbb92f9e91476ea44284e980a19a4eeb1a22 100644 (file)
@@ -7,8 +7,7 @@
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
+  the Free Software Foundation; version 2 of the License.
 
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 <?php
 /* Get the actual data for the page */
-if (Is_Readable($page.".html"))
-  require $page.".html";
+require "$page";
 ?>
 
 </font>
 </td>
 
-<td>
-<table bgcolor="#dddddd" cellpadding=2 cellspacing=0 border=0 
+<td bgcolor="#dddddd">
+<table bgcolor="#dddddd" cellpadding=4 cellspacing=0 border=0 
 width="99%" align=center>
 <tr><td>
 <font face="Helvetica,Arial,Sans-serif" size="1">
 
 <?php
 /* Get the index for this page */
-$len = strcspn($page, "_");
+$len = strcspn($page, "__");
 $fname = substr($page, 0, $len);
-if (Is_Readable($fname."_index.html"))
-  require $fname."_index.html";
-eit
+require "$fname"."__index.tmpl";
 ?>
 
 </font>