namespace fix
This commit is contained in:
parent
7b30e7ffc5
commit
da3d41a6f5
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
namespace ManiaControl\Files;
|
||||
|
||||
use ManiaControl\Callbacks\TimerListener;
|
||||
use ManiaControl\ManiaControl;
|
||||
use Structures\SocketStructure;
|
||||
|
||||
class AsynchronousFileReader implements TimerListener {
|
||||
/**
|
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace ManiaControl;
|
||||
namespace ManiaControl\Files;
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
|
||||
/**
|
||||
* File utility class
|
||||
@ -21,7 +23,7 @@ abstract class FileUtil {
|
||||
return null;
|
||||
}
|
||||
$urlData = parse_url($url);
|
||||
$port = (isset($urlData['port']) ? $urlData['port'] : 80);
|
||||
$port = (isset($urlData['port']) ? $urlData['port'] : 80);
|
||||
|
||||
$fsock = fsockopen($urlData['host'], $port);
|
||||
stream_set_timeout($fsock, 3);
|
||||
@ -35,8 +37,8 @@ abstract class FileUtil {
|
||||
fwrite($fsock, $query);
|
||||
|
||||
$buffer = '';
|
||||
$info = array('timed_out' => false);
|
||||
while (!feof($fsock) && !$info['timed_out']) {
|
||||
$info = array('timed_out' => false);
|
||||
while(!feof($fsock) && !$info['timed_out']) {
|
||||
$buffer .= fread($fsock, 1024);
|
||||
$info = stream_get_meta_data($fsock);
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
* Time: 00:18
|
||||
*/
|
||||
|
||||
namespace Structures;
|
||||
namespace ManiaControl\Files;
|
||||
|
||||
/**
|
||||
* Socket Structure
|
@ -5,7 +5,7 @@ namespace ManiaControl\Maps;
|
||||
use ManiaControl\Admin\AuthenticationManager;
|
||||
use ManiaControl\Callbacks\CallbackListener;
|
||||
use ManiaControl\Callbacks\CallbackManager;
|
||||
use ManiaControl\FileUtil;
|
||||
use ManiaControl\Files\FileUtil;
|
||||
use ManiaControl\Formatter;
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\ManiaExchange\ManiaExchangeList;
|
||||
@ -115,8 +115,8 @@ class MapManager implements CallbackListener {
|
||||
* @return bool
|
||||
*/
|
||||
private function saveMap(Map &$map) {
|
||||
$mysqli = $this->maniaControl->database->mysqli;
|
||||
$mapQuery = "INSERT INTO `" . self::TABLE_MAPS . "` (
|
||||
$mysqli = $this->maniaControl->database->mysqli;
|
||||
$mapQuery = "INSERT INTO `" . self::TABLE_MAPS . "` (
|
||||
`uid`,
|
||||
`name`,
|
||||
`authorLogin`,
|
||||
|
Loading…
Reference in New Issue
Block a user