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

@ -78,7 +78,7 @@ class ManiaExchangeManager {
foreach($mxMapInfos as $mxMapInfo) {
/** @var MXMapInfo $mxMapInfo */
$mapMxId = $mxMapInfo->id;
$mapUId = $mxMapInfo->uid;
$mapUId = $mxMapInfo->uid;
$saveMapStatement->execute();
if ($saveMapStatement->error) {
trigger_error($saveMapStatement->error);
@ -195,8 +195,6 @@ class ManiaExchangeManager {
// compile search URL
$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) {
$mxMapInfo = null;
@ -227,7 +225,6 @@ class ManiaExchangeManager {
// compile search URL
$url = 'http://api.mania-exchange.com/' . $titlePrefix . '/maps/?ids=' . $string;
$url .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
$thisRef = $this;
$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 .= '&key=t42kEMjzH7xpAjBFHAvEkC7rqAlw';
if ($titlePrefix == "tm") {
$url .= '&mapgroup=17';
} else {
$url .= '&mapgroup=1';
}
// Get MapTypes
try {
$scriptInfos = $this->maniaControl->client->getModeScriptInfo();

View File

@ -611,13 +611,8 @@ class MapManager implements CallbackListener {
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
$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) {
// Download error
$self->maniaControl->chat->sendError('Download failed!', $login);