From 7911c374e86ef8fa69c4545867b9d9d3de12d5c6 Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 25 Feb 2015 17:21:49 -0800 Subject: Public action logs commit (log.php) Note: In a previous commit, I began making inc/mod/auth.php more modular with the check_login() function. Including it does NOT check mod login by default anymore like it does on vichan. You have to call check_login(). I've finally included it in inc/functions.php. If you have any custom pages that use inc/mod/auth.php, just including functions.php is enough now. =================================== Also: backports 351375185e5 (early 404) --- mod.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 022f5408..a6ff00cf 100644 --- a/mod.php +++ b/mod.php @@ -5,13 +5,13 @@ */ require_once 'inc/functions.php'; -require_once 'inc/bans.php'; -require_once 'inc/mod/pages.php'; -require_once 'inc/mod/auth.php'; if ($config['debug']) $parse_start_time = microtime(true); +require_once 'inc/bans.php'; +require_once 'inc/mod/pages.php'; + check_login(true); $query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : ''; -- cgit v1.3