Added.
[runtime.git] / scripts / silcdoc / index.php
1 <?php
2
3 // directories where SILC documents are located
4 $DocRoot = "/home/www/silcnet.org/d/";
5 $HTMLRoot = $DocRoot;
6
7 // remove dangerous characters, only alphanumerical characters are passed
8 $SecurityFilter = $HTMLRoot.EReg_Replace('([^a-zA-Z0-9_.])*','',$page);
9
10 ?>
11
12 <?xml version="1.0" encoding="iso-8859-1"?>
13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
15 <head>
16  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-a" />
17  <meta http-equiv="Content-Language" content="en" />
18  <meta name="description" content="SILC Secure Internet Live Conferencing" />
19  <meta name="keywords" content="SILC, secure, chat, protocol, cipher, encrypt, SKE" />
20  <meta content="INDEX, FOLLOW" name="ROBOTS" />
21  <style type="text/css">
22   <!--
23   body { color: #000000; background: #bbbbbb; font-family: Helvetica, Arial, Sans-serif; }
24   a:link { text-decoration: none; color: #2f486f; }
25   a:visited { text-decoration: none;color: #2f486f; }
26   a:active { text-decoration: none; color: #2f486f; }
27   -->
28  </style>
29
30  <title> SILC Secure Internet Live Conferencing - 
31 <?php
32
33 if (Is_Readable($SecurityFilter.".php"))
34   echo $page;
35 else
36   echo "news";
37
38 ?>
39  </title>
40
41 </head>
42
43 <body bgcolor="#aaaaaa" text="#000000" link="#2f486f" alink="#2f486f" vlink="#2f486f">
44
45 <br />
46 <div align="center">
47 <table width="800" bgcolor="#000000" cellpadding="1" cellspacing="0" border="0">
48  <tr>
49   <td>
50     <table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0">
51      <tr>
52       <td bgcolor="#e2e2e2">
53         <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>
54       </td>
55      </tr>
56      <tr><td bgcolor="#000000" height="1"></td></tr>
57      <tr>
58       <td>
59         <table width="100%" bgcolor="#e2e2e2" cellpadding="10" cellspacing="0" border="0">
60         <tr><td><font face="Helvetica,Arial,Sans-serif">
61 <?php
62 // read document, if it is not valid then read opening page
63 if (Is_Readable($SecurityFilter))
64   require $SecurityFilter;
65 else
66   require $HTMLRoot."news.php";
67 ?>
68            </font>
69           </td>
70          </tr>
71         </table>
72       </td>
73      </tr>
74     </table>
75   </td>
76  </tr>
77 </table>
78 </font>
79 </div>
80
81 </body>
82 </html>