good()) { // Block user if he/she has been banned. if (user()->authlevel === 2) { exit("Your account has been banned."); } // Force verify if the user isn't verified yet. if ($controlrow['verifyemail'] && user()->verify !== 'g2g' && !in_array($uri[0], ['verify', 'logout'])) { redirect('/verify'); } // Ensure the user can't use the admin panel. if (user()->authlevel !== 1 && $uri[0] === 'admin') { redirect('/'); } user()->update_online_time(); } }