summaryrefslogtreecommitdiff
path: root/motion.php
diff options
context:
space:
mode:
Diffstat (limited to 'motion.php')
-rw-r--r--motion.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/motion.php b/motion.php
index f2accea..96412ce 100644
--- a/motion.php
+++ b/motion.php
@@ -47,7 +47,9 @@
$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'];
+ $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 = <<<BODY
Dear Board,
@@ -69,6 +71,8 @@ Please be aware, that if you have voted already your vote is still registered an
If this modification has an impact on how you wish to vote, you are responsible for voting
again.
+To see all your outstanding votes : $unvoted
+
Kind regards,
the voting system
BODY;
@@ -106,7 +110,9 @@ BODY;
$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'];
+ $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 = <<<BODY
Dear Board,
@@ -124,6 +130,8 @@ Aye: $voteurl&vote=1
Naye: $voteurl&vote=-1
Abstain: $voteurl&vote=0
+To see all your outstanding votes : $unvoted
+
Kind regards,
the voting system
BODY;