diff options
Diffstat (limited to 'proxy.php')
-rw-r--r-- | proxy.php | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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(); |