diff options
author | Andrew Dolgov <[email protected]> | 2017-06-29 13:04:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-29 13:04:54 +0300 |
commit | b54a6d3e68c97c73af4d5e1a6288e8b257cbd517 (patch) | |
tree | 5b33a3b88e7a1abb68949f1111f2753b5719fd21 /index.php | |
parent | 131e407e1bdbc6fd9e51d8bf695610d5676e6f66 (diff) |
don't start sessions needlessly
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"; |