summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-29 13:04:54 +0300
committerAndrew Dolgov <[email protected]>2017-06-29 13:04:54 +0300
commitb54a6d3e68c97c73af4d5e1a6288e8b257cbd517 (patch)
tree5b33a3b88e7a1abb68949f1111f2753b5719fd21 /index.php
parent131e407e1bdbc6fd9e51d8bf695610d5676e6f66 (diff)
don't start sessions needlessly
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 5260b1d..5743ea6 100644
--- a/index.php
+++ b/index.php
@@ -11,6 +11,11 @@
die("HTTP Authentication is no longer supported, please see migration notes in git.");
}
+ if (!isset($_COOKIE['epube_sid'])) {
+ header("Location: login.php");
+ exit;
+ }
+
require_once "config.php";
require_once "sessions.php";
require_once "db.php";