summaryrefslogtreecommitdiff
path: root/motion.php
diff options
context:
space:
mode:
Diffstat (limited to 'motion.php')
-rw-r--r--motion.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/motion.php b/motion.php
index 71fe4b7..de94bfd 100644
--- a/motion.php
+++ b/motion.php
@@ -4,12 +4,9 @@
header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
exit();
}
- $user = $_SERVER['REMOTE_USER'];
require_once("database.php");
$db = new DB();
- $stmt = $db->getStatement("get voter");
- $stmt->execute(array($user));
- if (!($user = $stmt->fetch())) {
+ if (!($user = $db->auth())) {
header("HTTP/1.0 302 Redirect");
header("Location: denied.php");
exit();