.
require_once("../inc/util.inc");
require_once("../inc/boinc_db.inc");
check_get_args(array("userid", "vote"));
$userid = get_int('userid');
$vote = get_str('vote');
$logged_in_user = get_logged_in_user();
if ($vote != "recommend" && $vote != "reject") {
error_page(tra("Invalid vote type:")." ".htmlentities($vote));
}
BoincProfile::update_aux("$vote=$vote+1 WHERE userid = $userid");
page_head(tra("Vote Recorded"));
start_table_noborder();
row1(tra("Thank you"));
if ($vote == "recommend") {
rowify(tra("Your recommendation has been recorded."));
} else {
rowify(tra("Your vote to reject this profile has been recorded."));
}
end_table();
echo "
" . tra("Return to profile.") . "";
page_tail();
?>