/**
  * action implement
  */
 public function actionImplement($in)
 {
     parent::actionImplement($in);
     if (!WBB_TAPATALK_REG_TYPE) {
         $this->data['sign_in'] = 0;
         $this->data['sso_signin'] = 0;
         $this->data['sso_register'] = 0;
         $this->data['inappreg'] = 0;
         $this->data['native_register'] = 0;
     }
     $isTTServerCall = false;
     if (isset($_SERVER['HTTP_X_TT'])) {
         $code = trim($_SERVER['HTTP_X_TT']);
         if (file_exists(WBB_TAPATALK_DIR . '/mbqFrame/3rdLib/classTTConnection.php')) {
             require_once WBB_TAPATALK_DIR . '/mbqFrame/3rdLib/classTTConnection.php';
         }
         if (class_exists('classTTConnection')) {
             $connection = new classTTConnection();
             $response = $connection->actionVerification($code, 'get_config');
             if ($response) {
                 $isTTServerCall = true;
             }
         }
     }
     if ($isTTServerCall) {
         if (!defined('WBB_TAPATALK_BANNER_CONTROL')) {
             $this->data['banner_control'] = new xmlrpcval(-1, 'string');
         } else {
             $this->data['banner_control'] = new xmlrpcval(WBB_TAPATALK_BANNER_CONTROL, 'string');
         }
     }
 }
示例#2
0
 /**
  * action implement
  */
 public function actionImplement()
 {
     parent::actionImplement();
 }