Merged silc_1_0_branch to trunk.
[silc.git] / scripts / silcdoc / gen_detail.php
index 6e2f8faa6ca031da180b751908d4d2419dbcbcd5..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>
+<td bgcolor="#dddddd">
 <table bgcolor="#dddddd" cellpadding=4 cellspacing=0 border=0 
 width="99%" align=center>
 <tr><td>
@@ -44,11 +42,9 @@ width="99%" align=center>
 
 <?php
 /* Get the index for this page */
-$len = strcspn($page, "_");
+$len = strcspn($page, "__");
 $fname = substr($page, 0, $len);
-if (Is_Readable($fname."_index.tmpl"))
-  require $fname."_index.tmpl";
-eit
+require "$fname"."__index.tmpl";
 ?>
 
 </font>