if ($pun_config['o_gzip'] && extension_loaded('zlib')) { ob_start('ob_gzhandler'); } else { ob_start(); } } // Define standard date/time formats $forum_time_formats = array($pun_config['o_time_format'], 'H:i:s', 'H:i', 'g:i:s a', 'g:i a'); $forum_date_formats = array($pun_config['o_date_format'], 'Y-m-d', 'Y-d-m', 'd-m-Y', 'm-d-Y', 'M j Y', 'jS M Y'); // Check/update/set cookie and fetch user info $pun_user = array(); check_cookie($pun_user); // Load the language system require PUN_ROOT . 'include/classes/lang.php'; $lang = new Flux_Lang(); $lang->setDefaultLanguage('English'); $lang->setLanguage($pun_user['language']); // Load the common language file $lang->load('common'); // Check if we are to display a maintenance message if ($pun_config['o_maintenance'] && $pun_user['g_id'] > PUN_ADMIN && !defined('PUN_TURN_OFF_MAINT')) { maintenance_message(); } // Load cached bans $pun_bans = $cache->get('bans'); if ($pun_bans === Flux_Cache::NOT_FOUND) { // Get the ban list from the DB $query = $db->select(array('id' => 'b.id', 'username' => 'b.username', 'ip' => 'b.ip', 'email' => 'b.email', 'message' => 'b.message', 'expire' => 'b.expire', 'ban_creator' => 'b.ban_creator'), 'bans AS b'); $params = array(); $pun_bans = $query->run($params); unset($query, $params);