removed mx karma key

This commit is contained in:
kremsy 2014-04-30 15:22:30 +02:00 committed by Steffen Schröder
parent 88dd18428b
commit c308ae09a5
2 changed files with 2 additions and 17 deletions

View File

@ -195,8 +195,6 @@ class ManiaExchangeManager {
// compile search URL // compile search URL
$url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $id; $url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $id;
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
return $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use (&$function, $titlePrefix, $url) { return $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use (&$function, $titlePrefix, $url) {
$mxMapInfo = null; $mxMapInfo = null;
@ -227,7 +225,6 @@ class ManiaExchangeManager {
// compile search URL // compile search URL
$url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $string; $url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $string;
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
$thisRef = $this; $thisRef = $this;
$success = $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use ($thisRef, $titlePrefix, $url) { $success = $this->maniaControl->fileReader->loadFile($url, function ($mapInfo, $error) use ($thisRef, $titlePrefix, $url) {
@ -304,13 +301,6 @@ class ManiaExchangeManager {
$url .= '&minexebuild=' . self::MIN_EXE_BUILD; $url .= '&minexebuild=' . self::MIN_EXE_BUILD;
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
if ($titlePrefix == "tm") {
$url .= '&mapgroup=17';
} else {
$url .= '&mapgroup=1';
}
// Get MapTypes // Get MapTypes
try { try {
$scriptInfos = $this->maniaControl->client->getModeScriptInfo(); $scriptInfos = $this->maniaControl->client->getModeScriptInfo();

View File

@ -611,13 +611,8 @@ class MapManager implements CallbackListener {
return; return;
} }
// TODO hardcoded during closed beta, later take just $mapInfo->url again
$url = 'http://' . $mapInfo->prefix . '.mania-exchange.com/' . $mapInfo->dir . '/download/' . $mapInfo->id;
$url .= '?key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
// Download the file // Download the file
$self->maniaControl->fileReader->loadFile($url, function ($file, $error) use (&$self, &$login, &$mapInfo, &$update) { $self->maniaControl->fileReader->loadFile($mapInfo->downloadurl, function ($file, $error) use (&$self, &$login, &$mapInfo, &$update) {
if (!$file) { if (!$file) {
// Download error // Download error
$self->maniaControl->chat->sendError('Download failed!', $login); $self->maniaControl->chat->sendError('Download failed!', $login);