summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-12-31 22:35:21 -0800
committerczaks <marcin@6irc.net>2016-05-05 11:40:52 +0200
commit3eb755ee7e0ec65d91377e13f0faf06657035e5a (patch)
treea898cd735bfa8900b6ebbf593b81900fd148ce90 /mod.php
parent93f748e6a83964cf40a22073acd0e2511eb4ca0b (diff)
Move login check in inc/mod/auth.php to a function
This allows pages like create.php to not include inc/mod/pages.php while still being able to use the mod auth functions (like generating salts and passwords)
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index c005dcb5..022f5408 100644
--- a/mod.php
+++ b/mod.php
@@ -12,6 +12,8 @@ require_once 'inc/mod/auth.php';
if ($config['debug'])
$parse_start_time = microtime(true);
+check_login(true);
+
$query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : '';
$pages = array(