diff --git a/html/user/change_password.php b/html/user/change_password.php
new file mode 100644
index 0000000000..f3d20e1837
--- /dev/null
+++ b/html/user/change_password.php
@@ -0,0 +1,18 @@
+
diff --git a/html/user/db.inc b/html/user/db.inc
index 095b19f1a0..02a0dbeaf9 100644
--- a/html/user/db.inc
+++ b/html/user/db.inc
@@ -168,7 +168,8 @@ function show_user_profile($user) {
row("Email address: ", $user->email_addr);
row("Country: ", $user->country);
row("Postal (ZIP) code: ", $user->postal_code);
- echo " \n";
+ echo "Edit User Information \n";
echo "\n";
}
diff --git a/html/user/edit.inc b/html/user/edit.inc
index 9484e86b47..5a1f210a62 100644
--- a/html/user/edit.inc
+++ b/html/user/edit.inc
@@ -4,19 +4,49 @@ function print_edit_user_info($user) {
printf(
"";
}
+function print_change_password($user) {
+ printf(
+ "\n"
+ );
+}
+
+
function print_update_ok($e_ok) {
if ($e_ok == EMAIL_EXISTS) {
printf(
diff --git a/html/user/edit_action.php b/html/user/edit_action.php
index 384aed42ce..9b388e0503 100644
--- a/html/user/edit_action.php
+++ b/html/user/edit_action.php
@@ -9,7 +9,6 @@
$user = get_user_from_cookie();
page_head("Updating User Account");
- printf("%d, %s\n", strlen($HTTP_POST_VARS["my_email"]), $HTTP_POST_VARS["my_email"]);
if ($user) {
$my_email = $HTTP_POST_VARS["my_email"];
$my_name = $HTTP_POST_VARS["my_name"];
diff --git a/html/user/edit_user_info.php b/html/user/edit_user_info.php
index 67bef86683..f053c017e4 100644
--- a/html/user/edit_user_info.php
+++ b/html/user/edit_user_info.php
@@ -12,7 +12,7 @@
print_edit_user_info($user);
} else {
page_head("Edit User Information");
- printf("Not Logged in. Click here to login.\n");
+ echo NOLOGIN;
}
page_tail();
diff --git a/html/user/home.php b/html/user/home.php
index 63506fe369..a4836d146b 100644
--- a/html/user/home.php
+++ b/html/user/home.php
@@ -7,12 +7,11 @@
$project = db_init();
$user = get_user_from_cookie();
if ($user) {
- $head = sprintf("%s's User Page for %s", $user->name, $project);
+ $head = sprintf("%s's User Page", $user->name);
page_head($head);
show_user_page($user, $project);
} else {
- $head = sprintf("Login to %s", $project);
- page_head($head);
+ page_head("Log in");
print_login_form();
}
page_tail();
diff --git a/html/user/login_action.php b/html/user/login_action.php
index 9c00ea2781..93c3dec28a 100644
--- a/html/user/login_action.php
+++ b/html/user/login_action.php
@@ -15,22 +15,18 @@
mysql_free_result($result);
}
if (!$user) {
- $head = sprintf("Logging in to %s", $project);
- page_head($head);
+ page_head("Logging in");
echo "There is no account with the email address you have entered.\n";
echo "Click the Back button to re-enter email address.\n";
} else if ($user->web_password != $HTTP_POST_VARS["existing_password"]) {
- $head = sprintf("Logging in to %s", $project);
- page_head($head);
- echo "Invalid password. Click the Back button to re-enter password.";
+ page_head("Logging in");
+ echo BADPASS;
} else {
setcookie("auth", $user->authenticator, time()+100000000);
- $head = sprintf("%s User Page", $project);
- page_head($head);
+ page_head("User Page");
show_user_page($user, $project);
}
} else if (strlen($HTTP_POST_VARS["new"])) {
- $head = sprintf("Creating %s Account", $project);
$query = sprintf(
"select * from user where email_addr='%s'",
$HTTP_POST_VARS["new_email_addr"]
@@ -41,7 +37,7 @@
mysql_free_result($result);
}
if ($user) {
- page_head($head);
+ page_head("Creating Account");
printf(
TABLE2."\n"
."Edit User Information \n";
+ echo "Change Password There's already an account with that email address. Click the Back button\n"
@@ -51,12 +47,11 @@
);
} else {
if ($HTTP_POST_VARS["new_password"] != $HTTP_POST_VARS["new_password2"]) {
- page_head($head);
+ page_head("Creating Account");
printf(
TABLE2."\n"
- ." \n"
+ ."You've typed two different passwords. Click the Back button on your \n"
- ."browser to edit your information, making sure you type the same password in both password\n"
- ." fields. \n"
."\n"
);
} else {
@@ -75,7 +70,7 @@
$result = mysql_query($query);
if ($result) {
setcookie("auth", $authenticator);
- page_head($head);
+ page_head("Creating Account");
printf(
TABLE2."\n"
."".DIFFPASS
+ ." Account has been created successfully. In order to run the client you will need a BOINC key. A key will be sent to \n"
@@ -87,7 +82,7 @@
);
mail($email_addr, "BOINC key", "Your BOINC key is " . $authenticator);
} else {
- page_head($head);
+ page_head("Creating Account");
printf(
TABLE2."\n"
." \n"
diff --git a/html/user/util.inc b/html/user/util.inc
index 894253d5a9..aa299bab58 100644
--- a/html/user/util.inc
+++ b/html/user/util.inc
@@ -9,6 +9,7 @@ define("EMAIL_FAIL", -2);
define("LG_FONT", "");
define("SM_FONT", "");
+define("TD", "Couldn't create account. Please try again later.
| Create New Account | Login \n"; - echo "| User Page | Teams | Main Project Page | |