Merge branch 'bug-910' into release
authorBernhard Fröhlich <bernhard@cacert.org>
Tue, 20 Sep 2011 19:44:23 +0000 (21:44 +0200)
committerBernhard Fröhlich <bernhard@cacert.org>
Tue, 20 Sep 2011 19:44:23 +0000 (21:44 +0200)
1  2 
www/index.php

diff --cc www/index.php
  
        if(!array_key_exists('signup',$_SESSION) || $_SESSION['signup']['year'] < 1900)
                $_SESSION['signup']['year'] = "19XX";
 +      
 +      if ($id == 19)
 +      {
 +              $protocol = $_SERVER['HTTPS'] ? 'https' : 'http';
 +              $newUrl = $protocol . '://wiki.cacert.org/FAQ/Privileges';
 +              header('Location: '.$newUrl, true, 301); // 301 = Permanently Moved
 +      }
  
+       if ($id == 8)
+       {
+               $protocol = $_SERVER['HTTPS'] ? 'https' : 'http';
+               $newUrl = $protocol . '://wiki.cacert.org/Board';
+               header('Location: '.$newUrl, true, 301); // 301 = Permanently Moved
+       }
+       
        showheader(_("Welcome to CAcert.org"));
        includeit($id);
        showfooter();