From 05542a460fc17ffc257e1fab9c42ef6185f2486f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Oct 2007 17:35:28 +0000 Subject: [PATCH] - user web: enable the "merge computers by name" feature. I added this on 30 May 07 but accidentally left "if ($userid==0)" around it. svn path=/trunk/boinc/; revision=13945 --- checkin_notes | 9 +++++++++ html/user/hosts_user.php | 15 ++++++++------- html/user/merge_by_name.php | 13 +++++-------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/checkin_notes b/checkin_notes index fc32a7c24c..7be8484df6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9829,3 +9829,12 @@ Frank Thomas 24 Oct 2007 clientgui/ ProjectProcessingPage.cpp + +David 24 Oct 2007 + - user web: enable the "merge computers by name" feature. + I added this on 30 May 07 but accidentally left + "if ($userid==0)" around it. + + html/user/ + merge_by_name.php + hosts_user.php diff --git a/html/user/hosts_user.php b/html/user/hosts_user.php index 50788cfe00..82a70865fc 100644 --- a/html/user/hosts_user.php +++ b/html/user/hosts_user.php @@ -85,8 +85,9 @@ if ($userid) { error_page("No such user"); } $caching=true; - // At this point, we know that (1) $userid, $show_all and $sort all have + // At this point, we know that $userid, $show_all and $sort all have // valid values. + // $cache_args="userid=$userid&show_all=$show_all&sort=$sort"; start_cache(USER_PAGE_TTL, $cache_args); if ($user->show_hosts) { @@ -128,14 +129,14 @@ while ($host = mysql_fetch_object($result)) { mysql_free_result($result); echo "\n"; -if ($old_hosts>0) more_or_less($show_all); - -if ($userid == 0) { - echo " - Merge hosts by name - "; +if ($old_hosts>0) { + more_or_less($show_all); } +echo " + Merge hosts by name +"; + if ($caching) { page_tail(true); end_cache(USER_PAGE_TTL, $cache_args); diff --git a/html/user/merge_by_name.php b/html/user/merge_by_name.php index 4da5553fec..44b55b2d6a 100644 --- a/html/user/merge_by_name.php +++ b/html/user/merge_by_name.php @@ -22,7 +22,7 @@ function merge_name($list) { } $error = merge_hosts($host, $newest_host); if (!$error) { - echo "merged $host->id into $newest_host->id\n"; + echo "
Merged $host->id into $newest_host->id\n"; } else { echo "
$error\n"; } @@ -54,17 +54,14 @@ if ($_GET['confirmed']) { } else { $tokens = url_tokens($user->authenticator); echo " - This operation will merge all of your computers - that have the same domain name. + This operation merges computers based on their domain name.

- For each name, it will merge all older computers + For each domain name, it will merge all older computers having that name with the newest computer having that name. Incompatible computers will not be merged.

- Click here - if you're sure you want to do this. -

Click here - to return to the list of your computers. + Go ahead and do this. +

Return to the list of computers. "; } page_tail();