aboutsummaryrefslogtreecommitdiff
path: root/auth.php
diff options
context:
space:
mode:
authorHorus32014-02-09 17:21:59 +0100
committerHorus32014-02-09 17:21:59 +0100
commit65dc06eab2305800ad862b4621807fd7d4f7fe8d (patch)
treec8efcc90589d30ecbe838fc7822c8d031cbececa /auth.php
downloadjungegemeinde-65dc06eab2305800ad862b4621807fd7d4f7fe8d.tar.gz
Init
Diffstat (limited to 'auth.php')
-rw-r--r--auth.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/auth.php b/auth.php
new file mode 100644
index 0000000..a63e5ea
--- /dev/null
+++ b/auth.php
@@ -0,0 +1,8 @@
+<?php
+ session_start();
+
+ if (!isset($_SESSION['login']) || !$_SESSION['login']) {
+ header('Location: login.php');
+ exit;
+ }
+?>