From 3eb755ee7e0ec65d91377e13f0faf06657035e5a Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 31 Dec 2014 22:35:21 -0800 Subject: 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) --- mod.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod.php') 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( -- cgit v1.3