/**
  * Loads the default data for the application (config, DB, options, etc).
  */
 public function loadDefaultData()
 {
     $config = $this->loadConfig();
     self::set('config', $config);
     self::setDebugMode($config->debug);
     self::$jsVersion = substr(md5(self::$versionId . $config->jsVersion), 0, 8);
     self::$externalDataPath = (string) $config->externalDataPath;
     self::$externalDataUrl = (string) $config->externalDataUrl;
     self::$javaScriptUrl = (string) $config->javaScriptUrl;
     $this->addLazyLoader('db', array($this, 'loadDb'), $config->db);
     $this->addLazyLoader('cache', array($this, 'loadCache'), $config->cache);
     $this->addLazyLoader('options', array($this, 'loadOptions'));
     $this->addLazyLoader('simpleCache', array($this, 'loadSimpleCache'));
 }
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
header('content-type: application/json; charset: utf-8');
/**
 * Bridge to XenForo
 */
$startTime = microtime(true);
$fileDir = '../../';
require $fileDir . '/library/XenForo/Autoloader.php';
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);
XenForo_Application::disablePhpErrorHandler();
XenForo_Application::setDebugMode(false);
XenForo_Application::$externalDataPath = $fileDir . '/data';
XenForo_Application::$externalDataUrl = $fileDir . '/data';
XenForo_Application::$javaScriptUrl = $fileDir . '/js';
restore_error_handler();
restore_exception_handler();
$options = XenForo_Application::get('options');
$STEAM_GAMEBANNER = $options->steamDisplayBanner;
if (!empty($_GET['steamids'])) {
    /*
     * Fetch profile data
     */
    $sHelper = new Steam_Helper_Steam();
    $steamProfileAPI = $sHelper->getSteamProfileAPI($_GET['steamids']);
    $fullProfile = $_GET['fullprofile'];
    $contentJson = $sHelper->getJsonData($steamProfileAPI);
    $contentDecoded = json_decode($contentJson);
    if (isset($contentDecoded->response->players)) {