sql_query($sql, false); while ( $row = $db->sql_fetchrow($result) ) { $config[$row['config_name']] = $row['config_value']; } // Re-cache acl options if reqd if ( empty($acl_options) ) { require_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx); $auth_admin = new auth_admin(); $acl_options = $auth_admin->acl_cache_options(); } // Instantiate some basic classes $user = new user(); $auth = new auth(); // Show 'Board is disabled' message if ( $config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN') ) { $message = ( !empty($config['board_disable_msg']) ) ? $config['board_disable_msg'] : 'Board_disable'; trigger_error($message); } // addslashes to vars if magic_quotes_gpc is off function slash_input_data(&$data) { if ( is_array($data) ) { foreach ( $data as $k => $v ) { $data[$k] = ( is_array($v) ) ? slash_input_data($v) : addslashes($v); } } return $data; } ?>