some parts of the jukebox

This commit is contained in:
kremsy
2013-12-28 23:24:54 +01:00
parent 19a8f3e2dc
commit 3b0f478e6e
4 changed files with 52 additions and 14 deletions

View File

@ -46,7 +46,7 @@ class Map {
* @param array $rpc_infos
*/
public function __construct(ManiaControl $maniaControl, $rpc_infos = null) {
// $this->maniaControl = $maniaControl;
$this->maniaControl = $maniaControl;
$this->startTime = time();
if (!$rpc_infos) {
@ -67,7 +67,7 @@ class Map {
$this->authorNick = $this->authorLogin;
/*$mapsDirectory = $this->maniaControl->server->getMapsDirectory();
$mapsDirectory = $this->maniaControl->server->getMapsDirectory();
if ($this->maniaControl->server->checkAccess($mapsDirectory)) {
$this->mapFetcher = new \GBXChallMapFetcher(true);
try {
@ -86,6 +86,6 @@ class Map {
// TODO: define timeout if mx is down,todo fetch all map infos at once (maybe way faster)
$serverInfo = $this->maniaControl->server->getSystemInfo();
$title = strtoupper(substr($serverInfo['TitleId'], 0, 2));
$this->mx = new \MXInfoFetcher($title, $this->uid, false);*/
$this->mx = new \MXInfoFetcher($title, $this->uid, false);
}
}