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