summaryrefslogtreecommitdiff
path: root/proxy.php
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.php')
-rw-r--r--proxy.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/proxy.php b/proxy.php
index 69e086a..ff725cd 100644
--- a/proxy.php
+++ b/proxy.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();