use ts3admin constants
This commit is contained in:
parent
a4a0202859
commit
dbe38967a5
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ final class ChannelSendAction extends AbstractAction
|
||||||
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
||||||
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
||||||
|
|
||||||
$dataResult = $this->ts->getInstance()->sendMessage(2, $cid, $body['message']);
|
$dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_CHANNEL, $cid, $body['message']);
|
||||||
|
|
||||||
$this->flash->addMessage('success', $this->translator->trans('done'));
|
$this->flash->addMessage('success', $this->translator->trans('done'));
|
||||||
return $response->withRedirect('/channels/' . $sid . '/' . $cid);
|
return $response->withRedirect('/channels/' . $sid . '/' . $cid);
|
||||||
|
|
|
@ -15,7 +15,7 @@ final class OnlineSendAction extends AbstractAction
|
||||||
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
||||||
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
||||||
|
|
||||||
$dataResult = $this->ts->getInstance()->sendMessage(1, $clid, $body['message']);
|
$dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_CLIENT, $clid, $body['message']);
|
||||||
|
|
||||||
$this->flash->addMessage('success', $this->translator->trans('done'));
|
$this->flash->addMessage('success', $this->translator->trans('done'));
|
||||||
return $response->withRedirect('/online/' . $sid . '/' . $clid);
|
return $response->withRedirect('/online/' . $sid . '/' . $clid);
|
||||||
|
|
|
@ -13,7 +13,7 @@ final class ServerSendAction extends AbstractAction
|
||||||
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
$this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']);
|
||||||
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
$selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId');
|
||||||
|
|
||||||
$dataResult = $this->ts->getInstance()->sendMessage(3, $sid, $body['message']);
|
$dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_SERVER, $sid, $body['message']);
|
||||||
|
|
||||||
$this->flash->addMessage('success', $this->translator->trans('done'));
|
$this->flash->addMessage('success', $this->translator->trans('done'));
|
||||||
return $response->withRedirect('/servers/' . $sid);
|
return $response->withRedirect('/servers/' . $sid);
|
||||||
|
|
Reference in a new issue