function __construct($parameters) { /* if(GlobalParameters::getCommand() != COMMAND_PING){ exit(); }*/ track_stats(); // ќтслеживаем производительность logUserAction(); $this->parameters = $parameters; $this->teamProfile = new Team(); track_stats(); // ќтслеживаем производительность $initResult = $this->teamProfile->initById(UserParameters::getUserId()); if (0 && UserParameters::getUserId() == GlobalParameters::MODER_ID) { if (preg_match("/id(\\d+)/ms", $this->teamProfile->getTeamName(), $match)) { $id = $match[1]; UserParameters::setUserId($id); GlobalParameters::$IS_FAKE_ENTER = true; $initResult = $this->teamProfile->initById(UserParameters::getUserId()); } } if ($initResult instanceof ErrorPoint) { $this->currentError = $initResult; } }