コード例 #1
0
 /**
  * Disassociates a forum account from Steam
  */
 public function actionExternalAccountsDisassociate()
 {
     $response = parent::actionExternalAccountsDisassociate();
     $input = $this->_input->filter(array('disassociate' => XenForo_Input::STRING, 'account' => XenForo_Input::STRING));
     $visitor = XenForo_Visitor::getInstance();
     if ($input['disassociate'] && $input['account'] == 'steam') {
         $sHelper = new Steam_Helper_Steam();
         $sHelper->deleteSteamData($visitor['user_id']);
     }
     return $response;
 }