".xml_error(-136)."\n";
exit();
}
$sum = 0;
echo "\n";
$results = BoincResult::enum("userid=$user->id AND (validate_state=0 OR validate_state=4) AND claimed_credit > 0");
foreach($results as $result) {
echo "\n";
echo " ".$result->id."\n";
echo " ".$result->workunitid."\n";
echo " ".$result->hostid."\n";
echo " ".$result->claimed_credit."\n";
echo " ".$result->received_time."\n";
echo "\n";
$sum += $result->claimed_credit;
}
echo "".$sum."\n";
echo "\n";
} else {
$user = get_logged_in_user();
$sum = 0;
page_head("Pending credit");
start_table();
echo "
Result ID | Workunit ID | Host ID | Claimed credit |
\n";
$results = BoincResult::enum("userid=$user->id AND (validate_state=0 OR validate_state=4) AND claimed_credit > 0");
foreach($results as $result) {
echo "\n";
echo "id\">$result->id | \n";
echo "workunitid\">$result->workunitid | \n";
echo "hostid\">$result->hostid | \n";
echo "".format_credit($result->claimed_credit)." | \n";
echo "
\n";
$sum += $result->claimed_credit;
}
end_table();
echo "Pending credit: ".format_credit($sum);
page_tail();
}
?>