diff --git a/account_prefs_page.php3 b/account_prefs_page.php3 index 37bfb5784a..3bc3caed04 100644 --- a/account_prefs_page.php3 +++ b/account_prefs_page.php3 @@ -83,6 +83,17 @@ +
"; + PRINT " | "; PRINT "$s_logged_in_as: $t_username"; PRINT " | "; - PRINT ""; + PRINT " | "; PRINT "$t_now"; PRINT " | "; - PRINT ""; + PRINT " | "; PRINT " | "; @@ -442,7 +442,7 @@ function print_assign_to_option_list() { } ### end for } ### -------------------- - function print_projects_option_list( $p_project_id="" ) { + function print_project_option_list( $p_project_id="" ) { global $g_mantis_project_table, $g_project_cookie_val; diff --git a/login.php3 b/login.php3 index 72e88087f5..61b9375ad2 100644 --- a/login.php3 +++ b/login.php3 @@ -36,10 +36,12 @@ ### set permanent cookie (1 year) if ( $f_perm_login=="on") { setcookie( $g_string_cookie, $u_cookie_string, time()+$g_cookie_time_length ); + setcookie( $g_project_cookie, $f_project_id, time()+$g_cookie_time_length ); } ### set temp cookie, cookie dies after browser closes else { setcookie( $g_string_cookie, $u_cookie_string ); + setcookie( $g_project_cookie, $f_project_id ); } header( "Location: $g_main_page" ); diff --git a/login_page.php3 b/login_page.php3 index 67d7744546..25a0fd3724 100644 --- a/login_page.php3 +++ b/login_page.php3 @@ -5,6 +5,9 @@ # See the README and LICENSE files for details ?> include( "core_API.php" ) ?> + + db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name ); +?> print_html_top() ?> print_head_top() ?> print_title( $g_window_title ) ?> @@ -51,6 +54,16 @@
+ echo $s_choose_project ?>: + | ++ + | +||||
diff --git a/strings_english.php b/strings_english.php index d46481cae6..64c3c94dcc 100644 --- a/strings_english.php +++ b/strings_english.php @@ -48,6 +48,7 @@ $s_default_account_preferences_title = "Default Account Preferences"; $s_advanced_report = "Advanced Report"; $s_advanced_view = "Advanced View"; + $s_default_project = "Default Project"; $s_update_prefs_button = "Update Prefs"; $s_reset_prefs_button = "Reset Prefs"; @@ -223,6 +224,7 @@ ### $s_username # defined above ### $s_password # defined above ### $s_save_login # defined above + $s_choose_project = "Choose Project"; ### $s_login_button # defined above $s_signup_link = "signup for a new account"; |