X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=public_html%2Findex.php;h=c32506e192690b0d3f1b2c41d8301142863a3612;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=0dfa6b134b85b3b2899460f98431cd574475e358;hpb=c085e6abc5496bb8d2aa9c4a49cdf7289e17cde2;p=silc.git diff --git a/public_html/index.php b/public_html/index.php index 0dfa6b13..c32506e1 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -1,95 +1,186 @@ - + +// 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/toolkit/sources/silc-toolkit-".$Latest_Toolkit.".tar.gz")); + $Date_Client = date("l dS of F Y H:i:s", + filemtime("download/client/sources/silc-client-".$Latest_Client.".tar.gz")); + $Date_Server = date("l dS of F Y H:i:s", + filemtime("download/server/sources/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 +
-
- + + - - -
- -
  • About the SILC -
  • History -
  • SILC Mailing Lists -
  • SILC Documentation - -
  • - -
  • Download SILC -
  • SILC FAQ -
  • SILC Features -
  • ChangeLog - -
  • - -
  • TODO -
  • Contributing -
  • Anonymous CVS Access -
  • The General Public License (GPL) - +
  • - - @@ -97,12 +188,19 @@ else
    + "> + + + "; + echo ""; + echo ""; + } ?> - -
    + +
    "; + echo " 
    "; + echo "\"".$alt."\""; + echo "
    -webpage by salo at Xtrmntr.org -
    - - - + +webpage by +salo at silcnet.org | + | W3C +XHTML and +CSS + +

    + +