X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=bbdfeb2654e8c09df856b60cbb00084fefafe876;hp=691e11374aa48d0966df8185f51eb6bff95d423e;hb=904257a6571c948d6501a46ea449107a60b0a4e3;hpb=c7d334c4782dd4bc07e5bda8bb364d62e5537d1e diff --git a/index.php b/index.php index 691e113..bbdfeb2 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arun Persaud * * This file is part of e-DoKo. * @@ -45,7 +45,7 @@ if($DBopen<0) echo "Database error, can't connect... Please wait a while and try again. ". "If the problem doesn't go away feel free to contact $ADMIN_NAME at $ADMIN_EMAIL."; else if ($DBopen == -2) - echo "Wrong database version, please update your database using the update.php script."; + echo 'Wrong database version, please update your database using the update.php script.'; output_footer(); exit(); @@ -58,13 +58,12 @@ if($DBopen<0) if(myisset('language') || isset($_SESSION['language'])) { $language = 'en'; - if(isset($_SESSION['language'])) - $language = $_SESSION['language']; + if(myisset('language')) - { - $language = $_REQUEST['language']; - $_SESSION['language'] = $language; /* overrule preferences */ - } + $language = $_REQUEST['language']; + else if(isset($_SESSION['language'])) + $language = $_SESSION['language']; + switch($language) { case 'de': @@ -139,7 +138,7 @@ switch($action) /* ask for login or display login info, needs to go at the end, so that we have the * session-variable already set. */ -output_status(); +output_navbar(); output_footer();