From e0e66c92db6753d3e8fd459e39ce73dd64967f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 26 Sep 2001 19:25:21 +0000 Subject: [PATCH] the cookie shouldn't be set before authentication is completed --- main.php3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.php3 b/main.php3 index 00483875a..846d62478 100755 --- a/main.php3 +++ b/main.php3 @@ -5,9 +5,9 @@ /** * Gets some core libraries and displays a top message if required */ -// Gets the language to use and put it in a cookie that will expire in 30 -// days require('./libraries/grab_globals.lib.php3'); +require('./libraries/common.lib.php3'); +// Puts the language to use in a cookie that will expire in 30 days setcookie('lang', $lang, time() + 60*60*24*30); // Handles some variables that may have been sent by the calling script if (isset($db)) { @@ -98,7 +98,7 @@ if ($server == 0 || count($cfgServers) > 1) { echo ' selected="selected"'; } echo '>'; - print((!empty($val['verbose'])) ? $val['verbose'] : $val['host']); + echo ((!empty($val['verbose'])) ? $val['verbose'] : $val['host']); if (!empty($val['port'])) { echo ':' . $val['port']; }