fixed language var in session
This commit is contained in:
parent
2e950db8fd
commit
8c233ab310
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue