e22e9b9b441ee1a2e525df06b5354d52d4253d93
[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">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 // read latest release version
80 if (File_Exists($DocRoot."LATEST_CLIENT")) {
81   $fp = FOpen($DocRoot."LATEST_CLIENT","r");
82   $latestc = EReg_Replace('([^a-zA-Z0-9.])*','',FGetS($fp,255));
83   FClose($fp);
84 }
85 // read latest release version
86 if (File_Exists($DocRoot."LATEST_SERVER")) {
87   $fp = FOpen($DocRoot."LATEST_SERVER","r");
88   $latests = EReg_Replace('([^a-zA-Z0-9.])*','',FGetS($fp,255));
89   FClose($fp);
90 }
91
92 function div($a,$b) {
93 return (int) ($a/$b);
94 }
95
96 $latest_d = filemtime($DocRoot."LATEST"); 
97 $latest_date = date("l dS of F Y H:i:s", $latest_d);
98 $latest_dc = filemtime($DocRoot."LATEST_CLIENT"); 
99 $latest_datec = date("l dS of F Y H:i:s", $latest_dc);
100 $latest_ds = filemtime($DocRoot."LATEST_SERVER"); 
101 $latest_dates = date("l dS of F Y H:i:s", $latest_ds);
102
103 // read document, if it is not valid then read first page
104 if (Is_File($SecurityFilter))
105   require $SecurityFilter;
106 else
107   require $DocRoot."news.php";
108
109 ?>
110         </font>
111         </td></tr>
112         </table>
113       </td>
114      </tr>
115     </table>
116   </td>
117  </tr>
118 </table>
119 <font size="1" face="Helvetica,Arial,Sans-serif">webpage by
120 <a href="mailto:salo at silcnet.org">salo at silcnet.org</a> | 
121 <font color="#2f486f"><? require $DocRoot."counter.php"; ?></font> |
122 <a href="http://validator.w3.org/check/referer">W3C HTML 4.01 compliant</a>
123 </font>
124 </div>
125
126 </body>
127 </html>