sql_query($sql))) { bb_die('Could not query attachment information'); } while ($row = DB()->sql_fetchrow($result)) { $attach_config[$row['config_name']] = trim($row['config_value']); } // We assign the original default board language here, because it gets overwritten later with the users default language $attach_config['board_lang'] = trim($bb_cfg['default_lang']); return $attach_config; } // Get Attachment Config $attach_config = array(); if (!$attach_config = CACHE('bb_cache')->get('attach_config')) { $attach_config = get_config(); CACHE('bb_cache')->set('attach_config', $attach_config, 86400); } include(ATTACH_DIR .'displaying.php'); include(ATTACH_DIR .'posting_attachments.php'); $upload_dir = $attach_config['upload_dir'];