auth())) { header("HTTP/1.0 302 Redirect"); header("Location: denied.php"); exit(); } $db->getStatement("stats")->execute(); $stats = $db->getStatement("stats")->fetch(); ?> CAcert Board Decisions getStatement("create decision"); $stmt->bindParam(":proponent",$user['id']); $stmt->bindParam(":title",$_POST['title']); $stmt->bindParam(":content",$_POST['content']); $stmt->bindParam(":votetype",$_POST['votetype']); $stmt->bindParam(":due",$_POST['due']); if ($stmt->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"; $votetype = !$decision['votetype'] ? 'motion' : 'veto'; $baseurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','',$_SERVER['REQUEST_URI']); $voteurl = $baseurl."vote.php?motion=".$decision['id']; $unvoted = $baseurl."motions.php?unvoted=1"; $body = <<notify("$tag - $title",$body,$tag,TRUE); } 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") as $column) { $motion[$column] = ""; } $motion["proposer"] = $user['name']; $motion["votetype"] = 0; // defaults to motion } } else { $motion = array(); foreach (array("title","content") as $column) { $motion[$column] = ""; } $motion["proposer"] = $user['name']; $motion["votetype"] = 0; // defaults to motion } ?>
method="POST"> " />
ID:
Proponent:
Proposed date/time:
Title:
Text:
Vote type:
Due:
 

Back to motions