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; }
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; }
/** * 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."); } }