sql_query($sql)) { // // Define some basic configuration // vars, necessary since we haven't // been able to get them from the DB // $board_config['default_template'] = "Default"; $board_config['default_timezone'] = 0; $board_config['default_dateformat'] = "d M Y H:i"; $board_config['default_theme'] = 1; $board_config['default_lang'] = "english"; // Our template class hasn't been instantiated // so we do it here. $template = new Template("templates/Default"); error_die(SQL_QUERY, "Could not query config information.", __LINE__, __FILE__); } else { $config = $db->sql_fetchrow($result); $board_config['sitename'] = stripslashes($config['sitename']); $board_config['allow_html'] = $config['allow_html']; $board_config['allow_bbcode'] = $config['allow_bbcode']; $board_config['allow_sig'] = $config['allow_sig']; $board_config['allow_namechange'] = $config['allow_namechange']; $board_config['require_activation'] = $config['require_activation']; $board_config['override_user_themes'] = $config['override_themes']; $board_config['posts_per_page'] = $config['posts_per_page']; $board_config['topics_per_page'] = $config['topics_per_page']; $board_config['default_theme'] = $config['default_theme']; $board_config['default_dateformat'] = stripslashes($config['default_dateformat']); $board_config['default_template'] = stripslashes($config['sys_template']); $board_config['default_timezone'] = $config['system_timezone']; $board_config['default_lang'] = stripslashes($config['default_lang']); $board_config['board_email'] = stripslashes(str_replace("
", "\n", $config['email_sig'])); $board_config['board_email_from'] = stripslashes($config['email_from']); } include('language/lang_'.$board_config['default_lang'].'.'.$phpEx); ?>