GGC

News
Main
Links
SourceForge forum
SourceForge downloads
Javadoc documentation
About this project
Deutsche Flagge Deutsche Version

Legal
Webpages' source

SourceForge.net Logo


Should you experience any difficulties with any of the above pages, please drop the sitemaster a note.

Best viewed with any browser

<?php
//phpinfo();
$relpath='./';
if (
stristr($_SERVER['HTTP_USER_AGENT'],'googlebot') ||
stristr($_SERVER['HTTP_USER_AGENT'],'msnbot') ||
stristr($_SERVER['HTTP_USER_AGENT'],'psbot') ||
stristr($_SERVER['HTTP_USER_AGENT'],'seekbot'))
{
include_once(
'en/index.php');
exit();
}
$lang=split('[,;]',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$supportedLangs=array('en''de');

foreach (
$lang as $currLang)
{
  foreach (
$supportedLangs as $suppLang)
  {
    if (
$currLang == $suppLang || stristr($currLang,$suppLang.'-') ||
        
stristr($currLang,$suppLang.'_'))
    {
      
header('Location: '.$suppLang.'/index.php');
      exit();
    }
  }
}

//all the db stuff should be done in the header
include_once('php/db.inc');
//make sure that $nodb is initialised to FALSE
$nodb FALSE;
//open db connection
$db = @mysql_connect ($dbhost$dbuser$dbrwpass) or $nodb TRUE;
@
mysql_select_db ($dbname);

include_once(
'php/session.inc');
if (!
has_session()) start_session();
include_once(
'php/useragents.inc');
$visits=num_visits('index','de_en');

@
mysql_close($db); //and close db connection
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
  <head>
    <meta name="generator" content=
    "HTML Tidy for Linux/x86 (vers 1st May 2002), see www.w3.org" />

    <title>The BU-Diary</title>
    <meta name="GENERATOR" content="Quanta Plus" />
  </head>

  <body>
    <p lang="de">Bitte wählen Sie Ihre Sprache:</p>

    <p lang="en">Please choose your language:</p>

    <ul>
      <li><a href="de/index.php" name="Deutsch" type="text/html"
      target="_parent" title="deutsch" lang="de">Deutsch</a></li>

      <li><a href="en/index.php" name="English" type="text/html"
      target="_parent" title="english" lang="en">English</a></li>
    </ul>
<? if ($lang[0] != ''){?>
    <p lang="en">
     Your Browser is set to accept the following languages:<br />
     <pre><? print_r($lang); ?></pre>
    </p>
<?}else{?>
    <p lang="de">Um automatisch weitergeleitet zu werden, müssen Sie Ihrem Browser mitteilen, welche Sprachen er akzeptieren soll.</p>
    <p lang="en">To be forwarded automatically, you should tell your browser which languages to accept.</p>
<?}?>
     <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=98228&amp;type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></a>
    <p lang="de">
      Diese Seite musste schon <? echo $visits?> mal angezeigt werden.
    </p>
    <p lang="en">This page had to be shown <? echo $visits?> times now.</p>
  </body>
</html>

Visitor count: 11496