Congratulations - your ".PROJECT." account has been created
@@ -20,7 +20,7 @@
- ";
+ ";
page_tail();
diff --git a/html/user/bug_report_action.php b/html/user/bug_report_action.php
index 9b0f9511a8..fe52b78320 100644
--- a/html/user/bug_report_action.php
+++ b/html/user/bug_report_action.php
@@ -12,8 +12,6 @@ if ($user == NULL) {
exit();
}
-parse_str(getenv("QUERY_STRING"));
-
$f = fopen("bug_reports.xml", "a");
$x = sprintf("$user->id
@@ -23,8 +21,8 @@ $x = sprintf("
",
- $HTTP_POST_VARS["platform"],
- $HTTP_POST_VARS["problem"]
+ $_POST["platform"],
+ $_POST["problem"]
);
fputs($f, $x);
fclose($f);
diff --git a/html/user/confirm_email_change.php b/html/user/confirm_email_change.php
index ba5f700210..b20bb93bf5 100644
--- a/html/user/confirm_email_change.php
+++ b/html/user/confirm_email_change.php
@@ -4,7 +4,8 @@
db_init();
- parse_str(getenv("QUERY_STRING"));
+ $id = $_GET["id"];
+ $str = $_GET["str"];
$user = null;
$result = mysql_query("select * from user where id=$id");
diff --git a/html/user/login_action.php b/html/user/login_action.php
index eaed88dcea..e86ea69f76 100644
--- a/html/user/login_action.php
+++ b/html/user/login_action.php
@@ -5,9 +5,9 @@
$authenticator = init_session();
db_init();
- $authenticator = $HTTP_POST_VARS["authenticator"];
- //$email_addr = $HTTP_POST_VARS["email_addr"];
- //$password = $HTTP_POST_VARS["password"];
+ $authenticator = trim($_POST["authenticator"]);
+ //$email_addr = $_POST["email_addr"];
+ //$password = $_POST["password"];
if (strlen($authenticator)) {
$query = "select * from user where authenticator='$authenticator'";
//} else if (strlen($email_addr)) {
@@ -29,7 +29,7 @@
page_tail();
//} else if (strlen($password)) {
// page_head("Log in");
- // if ($user->web_password != $HTTP_POST_VARS["existing_password"]) {
+ // if ($user->web_password != $_POST["existing_password"]) {
// echo "Bad password.";
// }
} else {
@@ -37,7 +37,7 @@
mysql_query("update user set email_addr='$email' where id=$user->id");
}
$_SESSION["authenticator"] = $user->authenticator;
- $next_url = $HTTP_POST_VARS["next_url"];
+ $next_url = $_POST["next_url"];
if (strlen($next_url) == 0) $next_url = "home.php";
Header("Location: $next_url");
}
diff --git a/html/user/login_form.php b/html/user/login_form.php
index c608bb108a..e77363fd33 100644
--- a/html/user/login_form.php
+++ b/html/user/login_form.php
@@ -1,13 +1,13 @@
//
-// 1.3
+// 1.3
// ...
//
//
@@ -78,11 +78,11 @@ function element_end($parser, $name) {
case "confirm_before_connecting":
$parse_result->confirm_before_connecting = true;
break;
- case "low_water_days":
- $parse_result->low_water_days = $text;
+ case "work_buf_min_days":
+ $parse_result->work_buf_min_days = $text;
break;
- case "high_water_days":
- $parse_result->high_water_days = $text;
+ case "work_buf_max_days":
+ $parse_result->work_buf_max_days = $text;
break;
case "disk_max_used_gb":
$parse_result->disk_max_used_gb = $text;
@@ -130,8 +130,8 @@ function default_prefs() {
$p->run_on_batteries = false;
$p->run_if_user_active = true;
$p->confirm_before_connecting = false;
- $p->low_water_days = 1;
- $p->high_water_days = 3;
+ $p->work_buf_min_days = 1;
+ $p->work_buf_max_days = 3;
$p->disk_max_used_gb = 100;
$p->disk_max_used_pct = 50;
$p->disk_min_free_gb = 1;
@@ -144,12 +144,15 @@ function default_prefs() {
return $p;
}
-// state of prefs before parsing
+// state of prefs before parsing; initialize all booleans to false
//
function initial_prefs() {
$p = default_prefs();
$p->show_email = false;
$p->send_email = false;
+ $p->run_on_batteries = false;
+ $p->run_if_user_active = false;
+ $p->confirm_before_connecting = false;
return $p;
}
@@ -173,20 +176,19 @@ function prefs_parse($prefs_xml) {
// display preference subsets, with Edit buttons
//
function prefs_show_global($prefs) {
- row2a("Work if computer on batteries:", $prefs->run_on_batteries?"Yes":"No");
- row2a("Work if computer in use:", $prefs->run_if_user_active?"Yes":"No");
- row2a("Confirm before connecting to network:", $prefs->confirm_before_connecting?"Yes":"No");
- row2a("Minimum amount of work to buffer:", "$prefs->low_water_days days");
- row2a("Maximum amount of work to buffer:", "$prefs->high_water_days days");
- row2a("Maximum disk space to use:", "$prefs->disk_max_used_gb GB");
- row2a("Minimum disk space to leave free:", "$prefs->disk_min_free_gb GB");
- row2a("Maximum % of disk allowed to used:", "$prefs->disk_max_used_pct %");
+ row2("Work if computer on batteries:", $prefs->run_on_batteries?"Yes":"No");
+ row2("Work if computer in use:", $prefs->run_if_user_active?"Yes":"No");
+ row2("Confirm before connecting to network:", $prefs->confirm_before_connecting?"Yes":"No");
+ row2("Amount of work to buffer:", "$prefs->work_buf_min_days to $prefs->work_buf_max_days days");
+ row2("Maximum disk space to use:", "$prefs->disk_max_used_gb GB");
+ row2("Minimum disk space to leave free:", "$prefs->disk_min_free_gb GB");
+ row2("Maximum % of disk allowed to used:", "$prefs->disk_max_used_pct %");
}
function prefs_show_resource($prefs) {
row2(
- "Resource share:
- If you participate in multiple BOINC projects, this is the proportion of your resources used by ".PROJECT."",
+ "Resource share
+ If you participate in multiple BOINC projects, this is the proportion of your resources used by ".PROJECT."",
$prefs->resource_share
);
}
@@ -251,9 +253,9 @@ function prefs_form_global($user, $prefs) {
Keep enough to work on disk to last between
-
+
and
- days
+ days
You can limit the disk space used by ".PROJECT." in three different ways:
@@ -310,7 +312,7 @@ function prefs_form_project($prefs_xml) {
}
function venue_show($user) {
- echo "