getStatement("get voter"); $stmt->execute(array($user)); if (!($user = $stmt->fetch())) { header("HTTP/1.0 302 Redirect"); header("Location: denied.php"); exit(); } $db->getStatement("stats")->execute(); $stats = $db->getStatement("stats")->fetch(); function htmlesc($string) { $string = preg_replace('/&/',"&",$string); $string = preg_replace('//',">",$string); echo $string; } ?> CAcert Board Decisions getStatement("update decision"); $stmt->bindParam(":id",$_POST['motion']); $stmt->bindParam(":proponent",$_POST['proponent']); $stmt->bindParam(":title",$_POST['title']); $stmt->bindParam(":content",$_POST['content']); $stmt->bindParam(":quorum",$_POST['quorum']); $stmt->bindParam(":majority",$_POST['majority']); $stmt->bindParam(":due",$_POST['due']); if ($stmt->execute()) { ?> The motion has been proposed!
Back to motions


getStatement("get decision")->execute(array($_POST['motion']))?$db->getStatement("get decision")->fetch():array(); $name = $user['name']; $tag = $decision['tag']; $title = $decision['title']; $content =$decision['content']; $due = $decision['due']." UTC"; $quorum = $decision['quorum']; $majority = $decision['majority']; $voteurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','vote.php',$_SERVER['REQUEST_URI'])."?motion=".$decision['id']; $body = <<notify("Re: $tag - $title",$body); } else { ?> The motion has NOT been proposed!
Back to motions
\n",$stmt->errorInfo()); ?>


getStatement("create decision"); $stmt->bindParam(":proponent",$_POST['proponent']); $stmt->bindParam(":title",$_POST['title']); $stmt->bindParam(":content",$_POST['content']); $stmt->bindParam(":quorum",$_POST['quorum']); $stmt->bindParam(":majority",$_POST['majority']); $stmt->bindParam(":due",$_POST['due']); if ($stmt->execute()) { $db->getStatement("post create")->execute(); ?> The motion has been proposed!
Back to motions


getStatement("get new decision")->execute()?$db->getStatement("get new decision")->fetch():array(); $name = $user['name']; $tag = $decision['tag']; $title = $decision['title']; $content =$decision['content']; $due = $decision['due']." UTC"; $quorum = $decision['quorum']; $majority = $decision['majority']; $voteurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','vote.php',$_SERVER['REQUEST_URI'])."?motion=".$decision['id']; $body = <<notify("$tag - $title",$body); } else { ?> The motion has NOT been proposed!
Back to motions
\n",$stmt->errorInfo()); ?>


getStatement("get decision"); if ($stmt->execute(array($_REQUEST['motion']))) { $motion = $stmt->fetch(); } if (!is_numeric($motion['id'])) { $motion = array(); foreach (array("title","content","quorum","majority") as $column) { $motion[$column] = ""; } $motion["proponent"] = $user['id']; $motion["proposer"] = $user['name']; } } else { $motion = array(); foreach (array("title","content","quorum","majority") as $column) { $motion[$column] = ""; } $motion["proponent"] = $user['id']; $motion["proposer"] = $user['name']; } ?>
method="POST"> " />
ID:
Proponent:
Proposed: UTC
Title:
Text:
Quorum:
Majority:
Due: UTC
 

Back to motions