<?
   /**
    * grab parms from URL
    *
    */
   parse_str($_SERVER['QUERY_STRING']);

   /**
    * some settings
    *
    */
   isset($page) || $page   = "home";               // default page to show
   $page_directory  = "pages";              // directory with pages
   $page_current    = "$page_directory/$page.php";


   /**
    * Login
    *
    */
   session_start();
   if(isset($_POST['username']) and isset($_POST['password'])) {
           $user = $_POST['username'];
           $pass = $_POST['password'];

           if($user == $pass) {
                   $_SESSION['user'] = $user;
                   $_SESSION['logged_in'] = true;
           }
   }

   /**
    * Prepare links
    */
   $spath = dirname($_SERVER['SCRIPT_NAME']);
   if(strlen($spath) < 2)
           $spath = "";

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
   <head>
      <title> Bacula, das Netzwerk Backup Programm f&uuml;r Linux, Unix, Mac und Windows </title>
      <link rel="stylesheet" type="text/css" href="../bacula.css" title="blueish">
      <meta name="Description" content="Bacula ein Netzwerk-Backup und Wiederherstellungs Program">
      <meta name="Keywords" content="Bacula, Backup, restore, Wiederherstellung, Daten Sicherung">
      <meta name="Copyright" content="Copyright (C) 2000-2007 Kern Sibbald">
      <meta name="Trademark" content="Bacula (R) is a registered trademark of John Walker">
   </head>

   <body>

   <!-- Top Search Bar -->
   <div class="searchBar">
   <table class="searchBar">
   <tr>
       <td style="text-align: left; vertical-align: middle; width:50%">
               Bacula, das Netzwerk-Backup-Programm f&uuml;r Linux, Unix, Mac und Windows.
       </td>
       <td style="text-align: left; vertical-align: middle">
           <img alt="Deutsch" src="../images/german-flag.jpg">
           &nbsp;&nbsp;&nbsp;
         <a href='/'>
           <img alt="English" src="../images/english-flag.jpg">
         </a>&nbsp;&nbsp;&nbsp;
         <a href='/fr'>
           <img alt="Fran&ccedil;ais" src="../images/french-flag.jpg">
         </a>
       </td>
       <FORM method=GET  target="_blank" action=http://www.google.de/search>
       <td style="text-align: right; vertical-align: middle">
           <INPUT id="text" class="searchBar" type="text" name="q" size=20
             maxlength=255 value="">
          <INPUT id="button" class="searchBar" type="submit" name="sa" VALUE="Suchen">
          <input type="hidden" name="domains" value="www.bacula.org">
          <input type="hidden" name="sitesearch" value="www.bacula.org">
       </td>
       </FORM>
   </tr>
   </table>
   </div>

   <!-- Logo Bar -->
   <div class="pageLogo">
       <table class="pageLogo">
         <tr>
           <td style="text-align: left; vertical-align: middle">
               <img alt="Bacula Logo" src="../images/bacu_logo-red.jpg">
           </td>
         </tr>
       </table>
   </div>

   <!-- User Bar - if logged in -->
   <?
   if($_SESSION['logged_in']) {
      printf('<div class="userBar">');
      printf('Welcome %s, <a style="color: white; text-decoration: none" href="/?page=logout">logout here</a>.', $_SESSION['user']);
      printf('</div>');
   }
   ?>

   <!-- Menu Left -->
   <div class="menuLeft">

        <!-- General -->
        <div class="menuHead"> allgemein </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=news"> Neuigkeiten </a></li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=home"> Bacula Homepage </a></li>
           <li class="menuItem"> <a href="dev-manual/Was_ist_Bacula.html"> Was ist Bacula? </a> </li>
           <li class="menuItem"> <a href="dev-manual/Baculas_Stand.html"> aktueller Stand </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=testimonials"> Empfehlungen </a> </li>
           <li class="menuItem"> <a href="http://sourceforge.net/projects/bacula"> SF Projektseite </a> </li>
           <li class="menuItem"> <a href="dev-manual/Systemvoraussetzungen.html"> Voraussetzungen </a> </li>
           <li class="menuItem"> <a href="dev-manual/Unterstut_Betriebssyste.html"> Betriebssysteme</a> </li>
           <li class="menuItem"> <a href="dev-manual/Unterstut_Bandlaufwerke.html"> Tape-Laufwerke </a> </li>
           <li class="menuItem"> <a href="dev-manual/Unterstut_Bandlaufwerke.html#SECTION00830000000000000000"> Autochanger </a> </li>
           <li class="menuItem"> <a href="dev-manual/Bacula_Copyri_Tradem_Licens.html"> Lizenz </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=fsfe"> FSFE Lizenz </a></li>
           </ul>
        </div>

        <!-- Documentation -->
        <!-- files need a version -->
        <div class="menuHead"> Dokumentation </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=documentation"> Dokumentation </a></li>
           <li class="menuItem"> <a href="http://wiki.bacula.org"> Wiki </a></li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=presentations"> Pr&auml;sentationen </a></li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=presskits"> Presse </a></li>
           </ul>
        </div>

        <!-- Downloads -->
        <div class="menuHead"> Downloads </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="http://sourceforge.net/project/showfiles.php?group_id=50727"> aktuelle Version </a> </li>
           <li class="menuItem"> <a href="http://sourceforge.net/project/showfiles.php?group_id=50727#files"> alle Versionen </a> </li>
           <li class="menuItem"> <a href="http://sourceforge.net/svn/?group_id=50727"> SVN Repository </a> </li>
           </ul>
        </div>

        <!-- Support -->
        <div class="menuHead"> Support </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=support"> Support </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=maillists"> E-Mail Listen </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=bugs"> Fehler-Berichte </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=professional"> professionelle Hilfe </a></li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=feature-request"> Feature Requests </a></li>
           </ul>
        </div>

        <!-- Projects -->
        <div class="menuHead"> Projekte </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=projects"> Projekte </a> </li>
  <!--
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=vote"> Projekt Abstimmungen </a> </li>
  -->
           </ul>
        </div>

        <div class="menuHead"> Spenden </div>
        <div class="menuItem">
           <ul class="menuitem">
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=makedonation">Spenden</a> </li>
  <!--
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=donations"> Spenden empfangen </a> </li>
  -->
           </ul>
        </div>


        <div class="menuHead">
        <div class="icons">
           <a href="http://www.ukfast.net"><img src="../images/bacula_ukfast_logo.gif" alt="www.ukfast.net"></a>
	   <!-- a href="http://www.sectoor.de"><img src="http://www.sectoor.de/grafiken/button_klein2.png" alt="Sectoor Logo"></a -->
           <!-- a href="http://validator.w3.org/check?uri=referer"><img src="../images/valid-xhtml10.png" alt="valix w3c logo"></a -->
           <!-- a href="http://jigsaw.w3.org/css-validator/validator?uri=<? echo $_SERVER['HTTP_REFERER']; ?>"><img src="../images/vcss.png" alt="valid css logo"></a-->
        </div>


        </div>

   </div>
   
   <div class="pageTopRight">
           Es kommt bei Nacht und saugt die lebenswichtigen Daten aus Ihren Computern
   </div>

   <div class="pageContent">
