The SILC Project

source navigation ]
identifier search ]
freetext search ]
file search ]

silc/public_html/index.php

  1 <?php
  2 // 
  3 // Copyright (c) 2001, Lubomir Sedlacik <salo@silcnet.org>
  4 // and other members of the SILC Project (http://silcnet.org)
  5 // All rights reserved.
  6 // 
  7 // Redistribution and use in source and binary forms, with or without
  8 // modification, are permitted provided that the following conditions
  9 // are met:
 10 // 
 11 // 1) Redistributions of source code must retain the above copyright notice,
 12 //    this list of conditions and the following disclaimer.
 13 // 2) Redistributions in binary form must reproduce the above copyright
 14 //    notice, this list of conditions and the following disclaimer in the
 15 //    documentation and/or other materials provided with the distribution.
 16 // 3) Neither the name of the SILC Project nor the names of its contributors
 17 //    may be used to endorse or promote products derived from this software
 18 //    without specific prior written permission.
 19 // 
 20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 21 // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 22 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 23 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
 24 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 25 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 26 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 27 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 28 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 29 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 30 // THE POSSIBILITY OF SUCH DAMAGE.
 31 // 
 32 
 33 // Read neccessary stuff if accessible
 34   if (@Is_Readable("config.php")) include("config.php");
 35   if (@Is_Readable("mirror.php")) include("mirror.php");
 36 
 37 ?>
 38 <?xml version="1.0" encoding="iso-8859-1"?>
 39 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 40 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 41 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 42 <head>
 43  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 44  <meta http-equiv="Content-Language" content="en" />
 45  <meta name="description" content="SILC Secure Internet Live Conferencing" />
 46  <meta name="keywords" content="SILC silcnet secure chat protocol cipher encrypt encryption SKE private channel conferencing" />
 47  <meta content="INDEX, FOLLOW" name="ROBOTS" />
 48  <title> SILC Secure Internet Live Conferencing - 
 49 <?php
 50 
 51   // sites
 52   if ($Country_Code != "")
 53     $WWW_Site = $Country_Code.".silcnet.org";
 54   else
 55     $WWW_Site = "silcnet.org";
 56 
 57   if ($Country_Code != "" && StrToLower($FTP_Archive) == "yes")
 58     $FTP_Site = "ftp.".$Country_Code.".silcnet.org";
 59   else
 60     $FTP_Site = "ftp.silcnet.org";
 61 
 62   if ($Country_Code != "" && StrToLower($CVS_Archive) == "yes"
 63                           && $CVS_User && $CVS_Root)
 64     $CVS_Site = "cvs.".$Country_Code.".silcnet.org";
 65   else {
 66     $CVS_Site = "cvs.silcnet.org";
 67     $CVS_User = "cvs";
 68     $CVS_Root = "/cvs/silc";
 69   }
 70 
 71   // find out release dates from release archive files
 72   $Date_Toolkit = date("l dS of F Y H:i:s",
 73                   filemtime("download/toolkit/sources/silc-toolkit-".$Latest_Toolkit.".tar.gz"));
 74   $Date_Client  = date("l dS of F Y H:i:s",
 75                   filemtime("download/client/sources/silc-client-".$Latest_Client.".tar.gz"));
 76   $Date_Server  = date("l dS of F Y H:i:s",
 77                   filemtime("download/server/sources/silc-server-".$Latest_Server.".tar.gz"));
 78 
 79   // remove possibly dangerous characters, only alphanumerical characters are passed
 80   function Filter($input) {
 81     return EReg_Replace("([^a-zA-Z0-9])*", "", $input);
 82   }
 83 
 84   // div();
 85   function div($a,$b) {
 86     return (int) ($a/$b);
 87   }
 88 
 89   $pass = 0;
 90   if (@Is_Readable("html/".Filter($page).".php")) {
 91     echo $page;
 92     $pass = 1;
 93   }
 94   else
 95     echo "news";
 96 ?>
 97  </title>
 98  <link href="silc.css" rel="stylesheet" type="text/css" />
 99 </head>
100 <body>
101 
102 <table width="100%" cellpadding="0" cellspacing ="0" border="0">
103 <tr><td align="center">
104 
105 <table width="700" cellpadding="1" cellspacing="0" border="0">
106  <tr>
107   <td class="outline">
108     <table width="100%" cellpadding="0" cellspacing="0" border="0">
109      <tr>
110       <td class="links">
111         <img src="img/silc.gif" width="700" height="100" alt=" " />
112       </td>
113      </tr>
114      <tr>
115       <td class="links" align="center">
116         <table cellspacing="3" cellpadding="10" border="0">
117         <tr><td valign="top" class="links">
118         <b>General</b><br />
119         <small class="normal">o</small> <a href="?page=news" class="normal">SILC News</a><br />
120         <small class="normal">o</small> <a href="?page=about" class="normal">About the SILC</a><br />
121         <small class="normal">o</small> <a href="?page=history" class="normal">History of SILC</a><br />
122         <small class="normal">o</small> <a href="?page=contact" class="normal">Contact Us</a><br />
123         <small class="normal">o</small> <a href="?page=lists" class="normal">SILC Mailing Lists</a><br />
124         </td><td valign="top" class="links">
125         <b>Documentation</b><br />
126         <small class="normal">o</small> <a href="?page=docs" class="normal">SILC Documentation</a><br />
127         <small class="normal">o</small> <a href="?page=whitepaper" class="normal">SILC White Paper</a><br />
128         <small class="normal">o</small> <a href="?page=faq" class="normal">SILC FAQ</a><br />
129         <small class="normal">o</small> <a href="?page=features" class="normal">SILC Features</a><br />
130         <small class="normal">o</small> <a href="?page=todo" class="normal">TODO List</a><br />
131         </td><td valign="top" class="links">
132         <b>Software</b><br />
133         <small class="normal">o</small> <a href="?page=download" class="normal">Download SILC</a><br />
134         <small class="normal">o</small> <a href="?page=mirrors" class="normal">Mirrors Worldwide</a><br />
135         <small class="normal">o</small> <a href="?page=cvs" class="normal">Anonymous CVS</a><br />
136         <small class="normal">o</small> <a href="txt/changes.txt" class="normal">ChangeLog</a><br />
137         <small class="normal">o</small> <a href="?page=copying" class="normal">Licensing</a><br />
138         </td><td valign="top" class="links">
139         <b>Community</b><br />
140         <small class="normal">o</small> <a href="?page=servers" class="normal">Server List</a><br />
141         <small class="normal">o</small> <a href="?page=contribute" class="normal">Contributing</a><br />
142         <small class="normal">o</small> <a href="?page=help" class="normal">Help</a><br />
143         <small class="normal">o</small> <a href="?page=links" class="normal">Links</a><br />
144         <small class="normal">o</small> <a href="txt/credits.txt" class="normal">Credits</a><br />
145         </td></tr></table>
146       </td>
147      </tr>
148      <tr><td class="line"></td></tr>
149      <tr>
150       <td class="<?php if($pass == 1 && $page == "whitepaper") $color="whitepaper"; else $color="text"; echo $color; ?>">
151         <table width="100%" cellpadding="10" cellspacing="0" border="0">
152         <tr><td class="<?php echo $color; ?>">
153 <?php
154   // read document, if it is not valid then read opening page
155   if ($pass == 1)
156     include("html/".Filter($page).".php");
157   else
158     include("html/news.php");
159 ?>
160           </td>
161          </tr>
162 <?php
163 
164   if ($OS_Type) {
165     switch(StrToLower($OS_Type)) {
166       case "bsd":   $img = "daemon.gif";
167                     $alt = "( daemon powered - IMAGE )";
168                     break;
169       case "linux": $img = "penguin.gif";
170                     $alt = "( penguin powered - IMAGE )";
171                     break;
172       case "sun":   $img = "sun.png";
173                     $alt = "( powered by Sun - IMAGE )";
174                     break;
175     }
176     echo "<tr>";
177     echo "<td align=\"right\" valign=\"bottom\">";
178     echo "&nbsp;<br />";
179     echo "<img src=\"img/".$img."\" alt=\"".$alt."\" />";
180     echo "</td>";
181     echo "</tr>";
182   }
183 ?>
184         </table>
185       </td>
186      </tr>
187     </table>
188   </td>
189  </tr>
190 </table>
191 <small class="highlight">
192 webpage by
193 <a href="mailto:salo at silcnet.org" class="small">salo at silcnet.org</a> | 
194 <?php
195   // insert counter
196   include("html/counter.php");
197 ?> | W3C 
198 <a href="http://validator.w3.org/check/referer" class="small">XHTML</a> and 
199 <a href="http://jigsaw.w3.org/css-validator/check/referer" class="small">CSS</a>
200 </small>
201 <br /><br />
202 
203 </td></tr></table>
204 
205 </body>
206 </html>

This page was automatically generated by the LXR engine.
Free-text search provided by Glimpse