| @@ 67-85 (lines=19) @@ | ||
| 64 | ||
| 65 | page_head(tra("Merge computers by name")); |
|
| 66 | ||
| 67 | if ($confirmed) { |
|
| 68 | check_tokens($user->authenticator); |
|
| 69 | merge_by_name($user->id); |
|
| 70 | echo " |
|
| 71 | <p><a href=hosts_user.php> |
|
| 72 | ".tra("Return to the list of your computers")."</a>. |
|
| 73 | "; |
|
| 74 | } else { |
|
| 75 | $tokens = url_tokens($user->authenticator); |
|
| 76 | echo tra("This operation merges computers based on their domain name. |
|
| 77 | <p> |
|
| 78 | For each domain name, it will merge all older computers |
|
| 79 | having that name with the newest computer having that name. |
|
| 80 | Incompatible computers will not be merged. |
|
| 81 | <p>")." |
|
| 82 | <a href=merge_by_name.php?confirmed=1&$tokens>".tra("Go ahead and do this")."</a>. |
|
| 83 | <p><a href=hosts_user.php>".tra("Return to the list of computers")."</a>. |
|
| 84 | "; |
|
| 85 | } |
|
| 86 | page_tail(); |
|
| 87 | ?> |
|
| 88 | ||
| @@ 147-155 (lines=9) @@ | ||
| 144 | } |
|
| 145 | if ($user) { |
|
| 146 | if ($user->teamid != $team->id) { |
|
| 147 | if ($team->joinable) { |
|
| 148 | $tokens = url_tokens($user->authenticator); |
|
| 149 | row2("", |
|
| 150 | '<a class="btn btn-success" href="team_join.php?'.$tokens.'&teamid='.$team->id.'">'.tra('Join this team').'</a> |
|
| 151 | <br><p class=\"text-muted\">'.tra('Note: if \'OK to email\' is set in your project preferences, joining a team gives its founder access to your email address.').'</p>' |
|
| 152 | ); |
|
| 153 | } else { |
|
| 154 | row2(tra("Not accepting new members"), ""); |
|
| 155 | } |
|
| 156 | } |
|
| 157 | if (($user->teamid == $team->id)) { |
|
| 158 | if (($user->id == $team->userid)) { |
|