2005-01-18 19:56:18 +00:00
|
|
|
<?php
|
|
|
|
|
2007-11-12 22:28:17 +00:00
|
|
|
require_once("../inc/boinc_db.inc");
|
2005-01-18 19:56:18 +00:00
|
|
|
|
|
|
|
$userid = $_GET['userid'];
|
|
|
|
$vote = $_GET['vote'];
|
|
|
|
|
|
|
|
if ($vote != "recommend" && $vote != "reject") {
|
|
|
|
echo "Invalid vote type.<br>";
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
2007-11-12 22:28:17 +00:00
|
|
|
BoincProfile::update_aux("$vote=$vote+1 WHERE userid = $userid");
|
2005-01-18 19:56:18 +00:00
|
|
|
|
|
|
|
page_head("Vote Recorded");
|
|
|
|
|
|
|
|
start_table_noborder();
|
|
|
|
|
|
|
|
row1("Thank you");
|
|
|
|
|
|
|
|
if ($vote == "recommend") {
|
|
|
|
rowify("Your recommendation has been recorded.");
|
|
|
|
} else {
|
|
|
|
rowify("Your vote to reject has been recorded.");
|
|
|
|
}
|
|
|
|
end_table();
|
|
|
|
echo "<br><a href=\"view_profile.php?userid=", $userid ,"\">Return to profile.</a>";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
|
|
|
|
?>
|