예제 #1
0
파일: Bind.php 프로젝트: Hywan/moxl
 public function handle($stanza, $parent = false)
 {
     $session = \Sessionx::start();
     list($jid, $resource) = explode('/', (string) $stanza->bind->jid);
     list($session->username, $session->host) = explode('@', $jid);
     if ($resource) {
         $session->resource = $resource;
     }
     $ss = new Start();
     $ss->setTo($session->host)->request();
 }
예제 #2
0
파일: Bind.php 프로젝트: movim/moxl
 public function handle($stanza, $parent = false)
 {
     $session = \Session::start();
     list($jid, $resource) = explode('/', (string) $stanza->bind->jid);
     list($username, $host) = explode('@', $jid);
     $session->set('username', $username);
     $session->set('host', $host);
     if ($resource) {
         $session->set('resource', $resource);
     }
     $ss = new Start();
     $ss->setTo($session->get('host'))->request();
 }