Changed mControl to ManiaControl
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
/**
|
||||
* mControl Chatlog Plugin
|
||||
* ManiaControl Chatlog Plugin
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
@ -51,7 +51,7 @@ class Plugin_Chatlog {
|
||||
|
||||
// File name
|
||||
$fileName = (string) $this->config->filename;
|
||||
$this->settings->fileName = mControl . '/' . $fileName;
|
||||
$this->settings->fileName = ManiaControlDir . '/' . $fileName;
|
||||
|
||||
// log_server_messages
|
||||
$log_server_messages = $this->config->xpath('log_server_messages');
|
||||
@ -77,7 +77,7 @@ class Plugin_Chatlog {
|
||||
* @param string $login
|
||||
*/
|
||||
private function logText($text, $login = null) {
|
||||
$message = date(mControl::DATE) . '>> ' . ($login ? $login . ': ' : '') . $text . PHP_EOL;
|
||||
$message = date(ManiaControl::DATE) . '>> ' . ($login ? $login . ': ' : '') . $text . PHP_EOL;
|
||||
file_put_contents($this->settings->fileName, $message, FILE_APPEND);
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
/**
|
||||
* mControl Karma Plugin
|
||||
* ManiaControl Karma Plugin
|
||||
*
|
||||
* @author : steeffeen
|
||||
*/
|
||||
@ -72,7 +72,7 @@ class Plugin_Karma {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle OnInit mControl callback
|
||||
* Handle OnInit ManiaControl callback
|
||||
*
|
||||
* @param array $callback
|
||||
*/
|
||||
@ -82,7 +82,7 @@ class Plugin_Karma {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle mControl BeginMap callback
|
||||
* Handle ManiaControl BeginMap callback
|
||||
*
|
||||
* @param array $callback
|
||||
*/
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
/**
|
||||
* mControl Obstacle Plugin
|
||||
* ManiaControl Obstacle Plugin
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
/**
|
||||
* Abstract mControl plugin class
|
||||
* Abstract ManiaControl plugin class
|
||||
*/
|
||||
abstract class Plugin_Name {
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
// TODO: show mix of best and next records (depending on own one)
|
||||
// TODO: enable keep-alive
|
||||
@ -11,7 +11,7 @@ namespace mControl;
|
||||
// TODO: threaded requests
|
||||
|
||||
/**
|
||||
* mControl Records Plugin
|
||||
* ManiaControl Records Plugin
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
@ -123,7 +123,7 @@ class Plugin_Records {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle mControl init
|
||||
* Handle ManiaControl init
|
||||
*/
|
||||
public function handleOnInit($callback = null) {
|
||||
// Let manialinks update
|
||||
@ -255,8 +255,8 @@ class Plugin_Records {
|
||||
$serverVersion = $this->iControl->server->getVersion();
|
||||
$serverData['ServerVersion'] = $serverVersion['Version'];
|
||||
$serverData['ServerBuild'] = $serverVersion['Build'];
|
||||
$serverData['Tool'] = 'mControl';
|
||||
$serverData['Version'] = mControl::VERSION;
|
||||
$serverData['Tool'] = 'ManiaControl';
|
||||
$serverData['Version'] = ManiaControl::VERSION;
|
||||
$this->dedimaniaData['serverData'] = $serverData;
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ class Plugin_Records {
|
||||
$header .= 'Accept-Encoding: gzip;' . PHP_EOL;
|
||||
$header .= 'Content-Type: text/xml; charset=utf-8;' . PHP_EOL;
|
||||
$header .= 'Keep-Alive: 300;' . PHP_EOL;
|
||||
$header .= 'User-Agent: mControl v' . mControl::VERSION . ';' . PHP_EOL;
|
||||
$header .= 'User-Agent: ManiaControl v' . ManiaControl::VERSION . ';' . PHP_EOL;
|
||||
$this->dedimaniaData['header'] = $header;
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace mControl;
|
||||
namespace ManiaControl;
|
||||
|
||||
// TODO: Jump message "now playing stadium"
|
||||
// TODO: put inactive server in idle (keeping same map)
|
||||
@ -9,7 +9,7 @@ namespace mControl;
|
||||
// TODO: max players setting
|
||||
|
||||
/**
|
||||
* mControl United Plugin
|
||||
* ManiaControl United Plugin
|
||||
*
|
||||
* @author steeffeen
|
||||
*/
|
||||
@ -78,7 +78,7 @@ class Plugin_United {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle mControl OnInit callback
|
||||
* Handle ManiaControl OnInit callback
|
||||
*
|
||||
* @param array $callback
|
||||
*/
|
||||
@ -303,7 +303,7 @@ class Plugin_United {
|
||||
}
|
||||
|
||||
// Build manialink url
|
||||
$manialink = 'mControl?favorite';
|
||||
$manialink = 'iControl?favorite';
|
||||
foreach ($serverLogins as $serverLogin) {
|
||||
$manialink .= '&' . $serverLogin;
|
||||
}
|
||||
@ -478,9 +478,9 @@ class Plugin_United {
|
||||
}
|
||||
|
||||
// Set api version
|
||||
if (!$client->query('SetApiVersion', mControl::API_VERSION)) {
|
||||
if (!$client->query('SetApiVersion', ManiaControl::API_VERSION)) {
|
||||
trigger_error(
|
||||
"Couldn't set API version '" . mControl::API_VERSION . "'! This might cause problems. " .
|
||||
"Couldn't set API version '" . ManiaControl::API_VERSION . "'! This might cause problems. " .
|
||||
$this->iControl->getClientErrorText($client));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user