index 801bba2cd64b0055304c971bf23a55f3c48510c2..6e3d205a3cb10bfe4f1db203243f5b85f8c414f9 100644 (file)
header("Content-type: text/html; charset=UTF-8");
-session_start();
+session::start();
/* Destroy old session if exists.
Else you will get your old session back, if you not logged out correctly. */
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
/* Generate server list */
}
/* show login screen */
+$smarty->assign("JS",session::get('js'));
$smarty->assign ("PHPSESSID", session_id());
if (session::is_set('errors')){
$smarty->assign("errors", session::get('errors'));;