CAcert Board Decisions
getStatement("get decision");
$stmt->bindParam(":decision",$_REQUEST['motion']);
if ($stmt->execute() && ($decision=$stmt->fetch())) {
if ($decision['status'] == 0) {
$stmt = $db->getStatement("del vote");
$stmt->bindParam(":voter",$user['id']);
$stmt->bindParam(":decision",$_REQUEST['motion']);
if ($stmt->execute()) {
$stmt = $db->getStatement("do vote");
$stmt->bindParam(":voter",$user['id']);
$stmt->bindParam(":decision",$_REQUEST['motion']);
$stmt->bindParam(":vote",$_REQUEST['vote']);
$notes="Direct Vote\n\n".$_SERVER['SSL_CLIENT_CERT'];
$stmt->bindParam(":notes",$notes);
if ($stmt->execute()) {
?>
Your vote has been registered. Back to motionsYour vote has NOT been registered. Back to motions\n",$stmt->errorInfo()); ?>Your vote has NOT been registered. Back to motions\n",$stmt->errorInfo()); ?>Your vote has NOT been registered. Voting is alread closed! Back to motionsYour vote has NOT been registered. Could not find the motion to be voted! Back to motionsThis call is not a valid vote! Back to motions