コード例 #1
0
 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isRawPostProtocol()) {
         $in->type = !empty(MbqMain::$input['type']) ? MbqMain::$input['type'] : "both";
         $in->code = MbqMain::$input['code'];
     }
     return $in;
 }
コード例 #2
0
 function getInput()
 {
     $in = new stdClass();
     if (MbqMain::isRawPostProtocol()) {
         $in->code = MbqMain::$input['code'];
     }
     include_once MBQ_3RD_LIB_PATH . 'classTTConnection.php';
     $connection = new classTTConnection();
     $response = $connection->actionVerification($in->code, 'reset_push_slug');
     if (!$response) {
         MbqError::alert('', __METHOD__ . ',line:' . __LINE__ . '.' . MBQ_ERR_INFO_PARAMS_ERROR);
     }
     return $in;
 }
コード例 #3
0
 /**
  * test plugin is open
  *
  * @return  Boolean
  */
 public function pluginIsOpen()
 {
     if (MbqMain::isXmlRpcProtocol() || MbqMain::isJsonProtocol() || MbqMain::isRawPostProtocol()) {
         return $this->cfg['base']['is_open']->oriValue == MbqBaseFdt::getFdt('MbqFdtConfig.base.is_open.range.yes') ? true : false;
     } else {
         MbqError::alert('', __METHOD__ . ',line:' . __LINE__ . '.' . "Invalid protocol.");
     }
 }