コード例 #1
0
 public function logout()
 {
     $Session = new Session();
     Phalanx::loadClasses('SocialNetwork');
     SocialNetwork::unlink_account($Session->user->id, INSTAGRAM);
     Request::redirect(HOST . 'perfil/configuracoes');
 }
コード例 #2
0
 public function logout()
 {
     Phalanx::loadController('LoginController');
     $loginController = new LoginController();
     $loginController->checkStatus();
     if ($this->session->accept_token != REQUEST_TOKEN) {
         Request::redirect(HOST . 'login');
     }
     SocialNetwork::unlink_account($this->session->user->id, SocialNetwork::FACEBOOK);
     Request::redirect(HOST . 'perfil/configuracoes');
 }
コード例 #3
0
 public function logout()
 {
     Phalanx::loadClasses('SocialNetwork');
     SocialNetwork::unlink_account($this->session->user->id, NERDTRACK);
     Request::redirect(HOST . 'perfil/configuracoes');
 }