config = $config; $this->phpbb_extension_manager = $phpbb_extension_manager; $this->phpbb_path_helper = $phpbb_path_helper; $this->db = $db; $this->user = $user; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; $this->football_includes_path = $phpbb_root_path . 'ext/football/football/includes/'; $this->football_root_path = $phpbb_root_path . 'ext/football/football/'; } public function handlexml($xmlside) { global $db, $user, $cache, $request, $season, $league, $football_root_path; global $config, $phpbb_root_path, $phpEx, $table_prefix, $ext_path; define('IN_FOOTBALL', true); $this->db = $db; $this->user = $user; $this->cache = $cache; $this->config = $config; $this->request = $request; $football_root_path = $phpbb_root_path . 'ext/football/football/'; $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); // Add football controller language file $this->user->add_lang_ext('football/football', 'info_acp_update'); // required includes include($this->football_includes_path . 'constants.' . $this->php_ext); include($this->football_includes_path . 'functions.' . $this->php_ext); if ($config['board_disable']) { $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; trigger_error($message); } if ($config['football_disable']) { $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; trigger_error($message); exit; } include($this->football_root_path . 'xml/' . $xmlside . '.' . $this->php_ext); } }