diff --git a/html/user/create_account.php b/html/user/create_account.php index 11ab6651fb..8dfe3ca602 100644 --- a/html/user/create_account.php +++ b/html/user/create_account.php @@ -9,5 +9,6 @@ db_init(); page_head("Create Account"); print_create_account_form(); +page_tail(); ?> diff --git a/html/user/db_name b/html/user/db_name index 046de4dba2..158deb63ab 100644 --- a/html/user/db_name +++ b/html/user/db_name @@ -1 +1 @@ -boinc_barry +boinc_cecile diff --git a/html/user/home.php b/html/user/home.php index 0a10905581..15d910add0 100644 --- a/html/user/home.php +++ b/html/user/home.php @@ -6,8 +6,8 @@ db_init(); $user = get_user_from_cookie(); - page_head("User home"); if ($user) { + page_head("User Home"); show_user_page($user); } else { print_login_form(); diff --git a/html/user/login_action.php b/html/user/login_action.php index ac0aab9880..0255ba1be1 100644 --- a/html/user/login_action.php +++ b/html/user/login_action.php @@ -2,6 +2,7 @@ require_once("util.inc"); require_once("user.inc"); require_once("db.inc"); + db_init(); if (strlen($HTTP_POST_VARS["old"])) { $query = sprintf( @@ -14,6 +15,7 @@ mysql_free_result($result); } if (!$user or ($user->web_password != $HTTP_POST_VARS["existing_password"])) { + page_head("Logging In"); echo "We have no account with that name and password."; } else { setcookie("auth", $user->authenticator, time()+100000000); @@ -31,9 +33,11 @@ mysql_free_result($result); } if ($user) { + page_head("Creating Account"); echo "There's already an account with that email address."; } else { if ($HTTP_POST_VARS["new_password"] != $HTTP_POST_VARS["new_password2"]) { + page_head("Creating Account"); echo "You've typed two different passwords."; } else { $authenticator = random_string(); @@ -51,9 +55,11 @@ $result = mysql_query($query); if ($result) { setcookie("auth", $authenticator); + page_head("Creating Account"); echo "Account created. You are being mailed a key that you'll need to run the client.\n"; mail($email_addr, "BOINC key", "Your BOINC key is " . $authenticator); } else { + page_head("Creating Account"); echo "Couldn't create account - please try later.\n"; } } diff --git a/html/user/prefs.inc b/html/user/prefs.inc index 66e4046adf..d4c14a0b93 100644 --- a/html/user/prefs.inc +++ b/html/user/prefs.inc @@ -224,11 +224,11 @@ function prefs_form_work($user, $prefs) { printf("
\n"; page_tail(); diff --git a/html/user/prefs_edit_disk_form.php b/html/user/prefs_edit_disk_form.php index 03a98fb384..fb56ede373 100644 --- a/html/user/prefs_edit_disk_form.php +++ b/html/user/prefs_edit_disk_form.php @@ -8,10 +8,10 @@ include_once("prefs.inc"); db_init(); $user = get_user_from_cookie(); -page_head("Edit Disk Preferences"); if ($user == NULL) { print_login_form(); } else { + page_head("Edit Disk Preferences"); $prefs = prefs_parse($user->prefs); prefs_form_disk($user, $prefs); echo "Preferences\n"; diff --git a/html/user/prefs_edit_work_action.php b/html/user/prefs_edit_work_action.php index 4303c71346..ed9c32ac99 100644 --- a/html/user/prefs_edit_work_action.php +++ b/html/user/prefs_edit_work_action.php @@ -8,10 +8,10 @@ include_once("prefs.inc"); db_init(); $user = get_user_from_cookie(); -page_head("Preferences"); if ($user == NULL) { print_login_form(); } else { + page_head("Preferences"); $prefs = prefs_parse($user->prefs); prefs_work_parse_form($prefs); prefs_update($user, $prefs); diff --git a/html/user/prefs_edit_work_form.php b/html/user/prefs_edit_work_form.php index bc23b4964f..224ebd28ec 100644 --- a/html/user/prefs_edit_work_form.php +++ b/html/user/prefs_edit_work_form.php @@ -8,10 +8,10 @@ include_once("prefs.inc"); db_init(); $user = get_user_from_cookie(); -page_head("Edit Work Preferences"); if ($user == NULL) { print_login_form(); } else { + page_head("Edit Work Preferences"); $prefs = prefs_parse($user->prefs); prefs_form_work($user, $prefs); echo "Preferences\n"; diff --git a/html/user/show_user.php b/html/user/show_user.php index 335d1bc922..df2362a1f9 100644 --- a/html/user/show_user.php +++ b/html/user/show_user.php @@ -5,12 +5,12 @@ require_once("login.inc"); db_init(); - $user = get_user_from_cookie(); - page_head("User stats"); + $user = get_user_From_cookie(); if ($user) { - show_user($user); + page_head("User stats"); + show_user($user); } else { - print_login_form(); + echo "Not logged in"; } page_tail(); ?> diff --git a/html/user/util.inc b/html/user/util.inc index 0f28d4fb7f..b81b43446e 100644 --- a/html/user/util.inc +++ b/html/user/util.inc @@ -59,7 +59,7 @@ function random_string() { } function print_country_select() { - PassThru("/home/david/boinc/tools/country_select"); + PassThru("/disks/milkyway/a/users/anderson/boinc/tools/country_select"); } function print_page_header($title) {