diff --git a/checkin_notes b/checkin_notes index 7e3df442b8..33f1b74fbf 100755 --- a/checkin_notes +++ b/checkin_notes @@ -8959,3 +8959,28 @@ David 6 Jan 2004 forum/ repair.php (new) user_posts.php + +David 7 Jan 2004 + - don't show #results in 1-line host summary (too slow) + - totally redid "host merge" mechanism. + - show all hosts that are compatible with this one + (not just older ones) + - show checkboxes with "select all" button + so you can easily merge large #s of hosts + - merge logic merges into newest host + - let anyone look at any result and any host + (may want to change this later, + but for now it helps with debuggin) + + html_user/ + host.inc + host_edit_action.php + host_edit_form.php + repair.php + result.php + results.php + show_host_detail.php + user.inc + workunit.php + sched/ + handle_request.C diff --git a/html/user/host.inc b/html/user/host.inc index 75c51a17b5..9191a2cbbf 100644 --- a/html/user/host.inc +++ b/html/user/host.inc @@ -125,7 +125,6 @@ function host_table_start($title, $private, $show_owner) {
Return to list of your computers + "; + page_tail(); + + //Header("Location: show_host_detail.php?hostid=$latest_host->id"); ?> diff --git a/html/user/host_edit_form.php b/html/user/host_edit_form.php index 44c3a830e6..6e6a80072e 100644 --- a/html/user/host_edit_form.php +++ b/html/user/host_edit_form.php @@ -20,27 +20,49 @@ if (!$host || $host->userid != $user->id) { $t = time_str($host->create_time); echo " - Sometimes BOINC assigns separate identities to the same host. + Sometimes BOINC assigns separate identities to the same computer by mistake. You can correct this by merging old identities with the newest one. -
"; diff --git a/html/user/repair.php b/html/user/repair.php index 63bec8378e..bcaa2d73c4 100644 --- a/html/user/repair.php +++ b/html/user/repair.php @@ -16,7 +16,7 @@ function wu_over($wu) { } function fix_validate_state() { - for ($i=0; $i<825637; $i++) { + for ($i=458983; $i<825637; $i++) { $result = mysql_query("select * from workunit where id=$i"); $wu = mysql_fetch_object($result); if ($wu) { diff --git a/html/user/result.php b/html/user/result.php index 08373cec9c..065ea0671b 100644 --- a/html/user/result.php +++ b/html/user/result.php @@ -12,10 +12,14 @@ $r = mysql_query("select * from result where id=$resultid"); $result = mysql_fetch_object($r); mysql_free_result($r); - if (!$result || $result->userid != $user->id) { + if (!$result) { echo "No such result"; exit(); } + //if ($result->userid != $user->id) { + // echo "No access"; + // exit(); + //} show_result($result); page_tail(); ?> diff --git a/html/user/results.php b/html/user/results.php index c680a0e5ae..3258056f74 100644 --- a/html/user/results.php +++ b/html/user/results.php @@ -17,10 +17,10 @@ if ($hostid) { $host = lookup_host($hostid); - if (!$host || $host->userid != $user->id) { - echo "No access"; - exit(); - } + // if (!$host || $host->userid != $user->id) { + // echo "No access"; + // exit(); + // } $type = "host"; $clause = "hostid=$hostid"; } else { diff --git a/html/user/show_host_detail.php b/html/user/show_host_detail.php index 5f8f600a6b..55732e8476 100644 --- a/html/user/show_host_detail.php +++ b/html/user/show_host_detail.php @@ -14,7 +14,7 @@ } $private = false; $user = get_logged_in_user(); - if ($user || $user->id == $host->userid) { + if ($user && $user->id == $host->userid) { $private = true; } diff --git a/html/user/user.inc b/html/user/user.inc index f2837adcc3..1ca84cd105 100644 --- a/html/user/user.inc +++ b/html/user/user.inc @@ -74,8 +74,6 @@ function show_user_profile_private($user) { // show summary of dynamic and static info (public) function show_user_summary_public($user) { - $result = mysql_query("SELECT * FROM profile WHERE userid = $user->id"); - row1("Account data for $user->name"); row2(PROJECT." member since", time_str($user->create_time)); row2("Country", $user->country); @@ -85,10 +83,6 @@ function show_user_summary_public($user) { row2("Total credit", format_credit($user->total_credit)); row2("Recent average credit", format_credit($user->expavg_credit)); - if (mysql_num_rows($result) != 0) { - row2("Profile", "id>View"); - } - if ($user->teamid) { $result = mysql_query("select * from team where id = $user->teamid"); $team = mysql_fetch_object($result); diff --git a/html/user/workunit.php b/html/user/workunit.php index c155ffd384..dffa16ab78 100644 --- a/html/user/workunit.php +++ b/html/user/workunit.php @@ -24,10 +24,10 @@ echo "\n"; echo "