From b3deaf4a85da4cc6f5c1b2f73594ca615d9a6775 Mon Sep 17 00:00:00 2001 From: Lubomir Sedlacik Date: Tue, 6 Nov 2001 23:12:18 +0000 Subject: [PATCH] completely replaces old.index.php --- public_html/index.php | 273 ++++++++++++++++++++++++++---------------- 1 file changed, 171 insertions(+), 102 deletions(-) diff --git a/public_html/index.php b/public_html/index.php index e22e9b9b..0bcd03e8 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -1,114 +1,176 @@ - - + +// and other members of the SILC Project (http://silcnet.org) +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// +// 1) Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// 2) Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3) Neither the name of the SILC Project nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +// THE POSSIBILITY OF SUCH DAMAGE. +// + +// Read neccessary stuff if accessible + if (Is_Readable("config.php")) include("config.php"); + if (Is_Readable("mirror.php")) include("mirror.php"); + +?> + + + - SILC Secure Internet Live Conferencing - - + + + + + + SILC Secure Internet Live Conferencing - +<?php + + // sites + if ($Country_Code != "") + $WWW_Site = $Country_Code.".silcnet.org"; + else + $WWW_Site = "silcnet.org"; + + if ($Country_Code != "" && StrToLower($FTP_Archive) == "yes") + $FTP_Site = "ftp.".$Country_Code.".silcnet.org"; + else + $FTP_Site = "ftp.silcnet.org"; + + if ($Country_Code != "" && StrToLower($CVS_Archive) == "yes" + && $CVS_User && $CVS_Root) + $CVS_Site = "cvs.".$Country_Code.".silcnet.org"; + else { + $CVS_Site = "cvs.silcnet.org"; + $CVS_User = "cvs"; + $CVS_Root = "/cvs/silc"; + } + + // find out release dates from release archive files + $Date_Toolkit = date("l dS of F Y H:i:s", + filemtime("download/silc-toolkit-".$Latest_Toolkit.".tar.gz")); + $Date_Client = date("l dS of F Y H:i:s", + filemtime("download/silc-client-".$Latest_Client.".tar.gz")); + $Date_Server = date("l dS of F Y H:i:s", + filemtime("download/silc-server-".$Latest_Server.".tar.gz")); + + // remove possibly dangerous characters, only alphanumerical characters are passed + function Filter($input) { + return EReg_Replace("([^a-zA-Z0-9])*", "", $input); + } + + // div(); + function div($a,$b) { + return (int) ($a/$b); + } + + $pass = 0; + if (Is_Readable("html/".Filter($page).".php")) { + echo $page; + $pass = 1; + } + else + echo "news"; +?> + + + - + +
-
-
- +
-
- +
+ - - -
-
 SILC Secure Internet Live Conferencing +
+
-
- - + + -
- - o About the SILC
- o History
- o SILC Mailing Lists
- o SILC Documentation
-
-
- - o Download SILC
- o SILC FAQ
- o SILC Features
- o ChangeLog
-
-
- - o TODO list
- o Contributing
- o Anonymous CVS Access
- o The General Public License (GPL)
-
+
+ +
+ General
+ o SILC News
+ o About the SILC
+ o History of SILC
+ o Contributing
+ o SILC Mailing Lists
+
+ Documentation
+ o SILC Documentation
+ o SILC White Paper
+ o SILC FAQ
+ o SILC Features
+ o TODO List
+
+ Software
+ o Download SILC
+ o Mirrors Worldwide
+ o Anonymous CVS Access
+ o ChangeLog
+ o The General Public License (GPL)
-
- - @@ -116,12 +178,19 @@ else
+ "> + + + "; + echo ""; + echo ""; + } ?> - -
+ +
"; + echo " 
"; + echo "\"".$alt."\""; + echo "
-webpage by -salo at silcnet.org | - | -W3C HTML 4.01 compliant - - + +webpage by +salo at silcnet.org | + | W3C +XHTML and +CSS + +

+ +
-- 2.24.0