Merged silc_1_1_branch to trunk.
[silc.git] / scripts / silcdoc / gen_index.php
index 4ee117cc21548014b3a7e83e21d7b7df76530c2b..f7c8535802ddddc913c5e64d2466cf95ea619094 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
 
 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#dddddd">
-  <td><small>Copyright &copy; 2001 - 2002 SILC Project<br />
+  <td><small>Copyright &copy; 2001 - 2007 SILC Project<br />
     <a href="http://silcnet.org">SILC Project Website</a></small></td>
   <td align="right"><small>
    <a href="index.html">SILC Toolkit Reference Manual</a><br />
+   <a href="toolkit_index.html">Index</a></small></td>
    </small></td>
  </tr>
 </table>
@@ -102,9 +102,9 @@ require "$page";
 <?php
 if ($type == 0) {
   /* Get the index for this page */
-  $len = strcspn($page, "__");
+  $len = strcspn($page, "-");
   $fname = substr($page, 0, $len);
-  require "$fname"."__index.tmpl";
+  require "$fname"."-index.tmpl";
 }
 ?>
 </font>
@@ -121,10 +121,11 @@ if ($type == 0) {
 </table>
 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#dddddd">
-  <td><small>Copyright &copy; 2001 - 2002 SILC Project<br />
+  <td><small>Copyright &copy; 2001 - 2007 SILC Project<br />
     <a href="http://silcnet.org">SILC Project Website</a></small></td>
   <td align="right"><small>
    <a href="index.html">SILC Toolkit Reference Manual</a><br />
+   <a href="toolkit_index.html">Index</a></small></td>
    </small></td>
  </tr>
 </table>