fixed language var in session

This commit is contained in:
Roland Gruber 2003-08-08 15:07:47 +00:00
parent 2e950db8fd
commit 8c233ab310
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ if($_POST['action'] == "checklogin")
if($result == True) // Username/password correct. Do some configuration and load main frame.
{
$_SESSION['language'] = $_POST['language']; // Write selected language in session
$language = explode(":",$_SESSION['language']);
$_SESSION['header'] = "<?xml version=\"1.0\" encoding=\"" . $language[1] . "\"?>\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n\n";
$current_language = explode(":",$_SESSION['language']);
$_SESSION['header'] = "<?xml version=\"1.0\" encoding=\"" . $current_language[1] . "\"?>\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n\n";
include("./main.php"); // Load main frame