~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to html/user/profile_rate.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
$userid = get_int('userid');
23
23
$vote = get_str('vote');
24
24
 
 
25
$logged_in_user = get_logged_in_user();
25
26
if ($vote != "recommend" && $vote != "reject") {
26
 
    echo "Invalid vote type.<br>";
27
 
    exit();
 
27
    error_page(tra("Invalid vote type:")." ".htmlentities($vote));
28
28
}
29
29
 
30
30
BoincProfile::update_aux("$vote=$vote+1 WHERE userid = $userid");
31
31
 
32
 
page_head("Vote Recorded");
 
32
page_head(tra("Vote Recorded"));
33
33
 
34
34
start_table_noborder();
35
35
 
36
 
row1("Thank you");
 
36
row1(tra("Thank you"));
37
37
 
38
38
if ($vote == "recommend") {
39
 
    rowify("Your recommendation has been recorded.");
 
39
    rowify(tra("Your recommendation has been recorded."));
40
40
} else {
41
 
    rowify("Your vote to reject has been recorded.");
 
41
    rowify(tra("Your vote to reject this profile has been recorded."));
42
42
}
43
43
end_table();
44
 
echo "<br><a href=\"view_profile.php?userid=", $userid ,"\">Return to profile.</a>";
 
44
echo "<br><a href=\"view_profile.php?userid=", $userid ,"\">" . tra("Return to profile.") . "</a>";
45
45
 
46
46
page_tail();
47
47