maniaControl = $maniaControl; if ($rpc_infos) { $this->name = $rpc_infos['Name']; //in aseco stripped new lines on name $this->uid = $rpc_infos['UId']; $this->fileName = $rpc_infos['FileName']; $this->authorLogin = $rpc_infos['Author']; $this->environment = $rpc_infos['Environnement']; $this->goldTime = $rpc_infos['GoldTime']; $this->copperPrice = $rpc_infos['CopperPrice']; $this->mapType = $rpc_infos['MapType']; $this->mapStyle = $rpc_infos['MapStyle']; $this->mapFetcher = new \GBXChallMapFetcher(true); try{ $this->mapFetcher->processFile($this->maniaControl->server->getMapsDirectory() . $this->fileName); } catch (Exception $e){ trigger_error($e->getMessage(), E_USER_WARNING); } $this->authorNick = $this->mapFetcher->authorNick; $this->authorEInfo = $this->mapFetcher->authorEInfo; $this->authorZone = $this->mapFetcher->authorZone; $this->comment = $this->mapFetcher->comment; //additional properties anyway in the mapfetcher object //TODO: change to SM to gameerkennung //TODO: define timeout if mx is down $this->mx = new \MXInfoFetcher('SM', $this->uid, false); //SM -> change to gameerkennung } else { $this->name = 'undefined'; } $this->starttime = time(); } }