new web pages
[silc.git] / public_html / index.php
diff --git a/public_html/index.php b/public_html/index.php
new file mode 100644 (file)
index 0000000..41ae7d9
--- /dev/null
@@ -0,0 +1,101 @@
+<html>
+<head>
+ <title> SILC Secure Internet Live Conferencing </title>
+<style TYPE="text/css">
+<!-- 
+ A:link { text-decoration: none }
+ A:visited { text-decoration: none }
+ A:active { text-decoration: none }
+-->
+</style>
+</head>
+<body bgcolor="#aaaaaa" text="#000000" link="#2f486f" alink="#2f486f" vlink="#2f486f">
+
+<br>
+<center>
+<table width="700" bgcolor="#000000" cellpadding="1" cellspacing="0" border="0">
+ <tr>
+  <td>
+    <table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0">
+     <tr>
+      <td bgcolor="#e2e2e2">
+        <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>
+      </td>
+     </tr>
+     <tr><td bgcolor="#000000" height="1"><img src="img/pixel.gif" alt="" height="1"></td></tr>
+     <tr>
+      <td>
+        <center>
+        <table cellspacing="0" cellpadding="10" border="0"><tr><td>
+        <font size="2" face="Helvetica,Arial,Sans-serif">
+        <li><a href="index.php?page=about">About the SILC</a>
+        <li><a href="index.php?page=faq">The SILC FAQ</a>
+        <li><a href="index.php?page=docs">SILC Documentation</a>
+        <li><a href="index.php?page=history">History</a>
+        </font>
+        </td><td>
+        <font size="2" face="Helvetica,Arial,Sans-serif">
+        <li><a href="index.php?page=download">Download SILC</a>
+        <li><a href="index.php?page=features">SILC Features</a>
+        <li><a href="changes.txt">ChangeLog</a>
+        <li><a href="todo.txt">TODO</a>
+        </font>
+        </td><td>
+        <font size="2" face="Helvetica,Arial,Sans-serif">
+        <li><a href="index.php?page=lists">SILC Mailing Lists</a>
+        <li><a href="index.php?page=contribute">Contributing</a>
+        <li><a href="index.php?page=cvs">Anonymous CVS Access</a>
+        <li><a href="index.php?page=copying">The General Public License (GPL)</a>
+        </font>
+        </td></tr></table>
+        </center>
+      </td>
+     <tr>
+     <tr><td bgcolor="#000000" height="1"><img src="img/pixel.gif" alt="" height="1"></td></tr>
+     <tr>
+      <td>
+        <table width="100%" bgcolor="#e2e2e2" cellpadding="10" cellspacing="0" border="0">
+        <tr><td><font face="Helvetica,Arial,Sans-serif">
+<?php
+
+// directory where SILC FTP files are located
+$FTPRoot = "/home/ftp/pub/silc/";
+
+// directory where SILC HTML documents are located
+$DocRoot = "/home/priikone/public_html/silc/silc/";
+
+// remove dangerous characters, only alphanumerical characters are passed
+$SecurityFilter = $DocRoot.EReg_Replace('([^a-zA-Z0-9])*','',$page).".php";
+
+// read latest release version
+if (File_Exists($DocRoot."LATEST")) {
+  $fp = FOpen($DocRoot."LATEST","r");
+  $latest = EReg_Replace('([^a-zA-Z0-9.])*','',FGetS($fp,255));
+  FClose($fp);
+}
+
+function div($a,$b) {
+return (int) ($a/$b);
+}
+
+// read document, if it is not valid then read first page
+if (Is_File($SecurityFilter))
+  require $SecurityFilter;
+else
+  require $DocRoot."news.php";
+
+?>
+        </font>
+        </td></tr>
+        </table>
+      </td>
+     </tr>
+    </table>
+  </td>
+ </tr>
+</table>
+<font size="1" face="Helvetica,Arial,Sans-serif">webpage by <a href="mailto:salo at Xtrmntr.org">salo at Xtrmntr.org</a></font>
+</center>
+
+</body>
+</html>