updates
[silc.git] / public_html / index.php
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4  <title> SILC Secure Internet Live Conferencing </title>
5  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6  <style TYPE="text/css">
7  <!--
8   body { color: #000000; background: #aaaaaa; font-family: Helvetica, Arial, Sans-serif; }
9   a:link { text-decoration: none; color: #2f486f; }
10   a:visited { text-decoration: none;color: #2f486f; }
11   a:active { text-decoration: none; color: #2f486f; }
12  -->
13  </style>
14 </head>
15
16 <body bgcolor="#aaaaaa" text="#000000" link="#2f486f" alink="#2f486f" vlink="#2f486f">
17
18 <br>
19 <div align="center">
20 <table width="700" bgcolor="#000000" cellpadding="1" cellspacing="0" border="0">
21  <tr>
22   <td>
23     <table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0">
24      <tr>
25       <td bgcolor="#e2e2e2">
26         <br><a href="index.php?page=news"><img src="img/silc.gif" width="700" height="100" alt=" SILC Secure Internet Live Conferencing " border="0"></a>
27       </td>
28      </tr>
29      <tr><td bgcolor="#000000" height="1"><img src="img/pixel.gif" alt="" height="1"></td></tr>
30      <tr>
31       <td>
32         <div align="center">
33         <table cellspacing="3" cellpadding="10" border="0"><tr><td>
34         <font size="2" face="Helvetica,Arial,Sans-serif">
35         o <a href="index.php?page=about">About the SILC</a><br>
36         o <a href="index.php?page=history">History</a><br>
37         o <a href="index.php?page=lists">SILC Mailing Lists</a><br>
38         o <a href="index.php?page=docs">SILC Documentation</a><br>
39         </font>
40         </td><td>
41         <font size="2" face="Helvetica,Arial,Sans-serif">
42         o <a href="index.php?page=download">Download SILC</a><br>
43         o <a href="index.php?page=faq">The SILC FAQ</a><br>
44         o <a href="index.php?page=features">SILC Features</a><br>
45         o <a href="changes.txt">ChangeLog</a><br>
46         </font>
47         </td><td>
48         <font size="2" face="Helvetica,Arial,Sans-serif">
49         o <a href="index.php?page=todo">TODO list</a><br>
50         o <a href="index.php?page=contribute">Contributing</a><br>
51         o <a href="index.php?page=cvs">Anonymous CVS Access</a><br>
52         o <a href="index.php?page=copying">The General Public License (GPL)</a><br>
53         </font>
54         </td></tr></table>
55         </div>
56       </td>
57      <tr><td bgcolor="#000000" height="1"><img src="img/pixel.gif" alt="" height="1"></td></tr>
58      <tr>
59       <td>
60         <table width="100%" bgcolor="#e2e2e2" cellpadding="10" cellspacing="0" border="0">
61         <tr><td><font face="Helvetica,Arial,Sans-serif">
62 <?php
63
64 // directory where SILC FTP files are located
65 $FTPRoot = "/home/ftp/pub/silc/";
66
67 // directory where SILC HTML documents are located
68 $DocRoot = "/home/priikone/public_html/silc/";
69
70 // remove dangerous characters, only alphanumerical characters are passed
71 $SecurityFilter = $DocRoot.EReg_Replace('([^a-zA-Z0-9])*','',$page).".php";
72
73 // read latest release version
74 if (File_Exists($DocRoot."LATEST")) {
75   $fp = FOpen($DocRoot."LATEST","r");
76   $latest = EReg_Replace('([^a-zA-Z0-9.])*','',FGetS($fp,255));
77   FClose($fp);
78 }
79
80 function div($a,$b) {
81 return (int) ($a/$b);
82 }
83
84 $latest_d = filemtime($DocRoot."LATEST"); 
85 $latest_date = date("l dS of F Y H:i:s", $latest_d);
86
87 // read document, if it is not valid then read first page
88 if (Is_File($SecurityFilter))
89   require $SecurityFilter;
90 else
91   require $DocRoot."news.php";
92
93 ?>
94         </font>
95         </td></tr>
96         </table>
97       </td>
98      </tr>
99     </table>
100   </td>
101  </tr>
102 </table>
103 <font size="1" face="Helvetica,Arial,Sans-serif">webpage by
104 <a href="mailto:salo at Xtrmntr.org">salo at Xtrmntr.org</a> | 
105 <b><font color="#2f486f"><? require $DocRoot."counter.php"; ?></font></b> |
106 <a href="http://validator.w3.org/check/referer">W3C HTML 4.01 compliant</a>
107 </font>
108 </div>
109
110 </body>
111 </html>