/** * 构造函数 */ function pushbackCommunicator() { $this->http = XWB_plugin::getHttp(); $this->appkey = XWB_APP_KEY; $this->appsecret = XWB_APP_SECRET_KEY; $this->serverUrl = XWB_PUSHBACK_URL; $this->pushbackAuthKey = (string) XWB_Plugin::pCfg('pushback_authkey'); }
/** * 检查is_pushback_open设置的真实性 * @return integer */ function _checkPushbackOpenConfig() { $is_pushback_open = 1; $config = XWB_Plugin::pCfg(); if (!$config['pushback_to_thread'] && !$config['pushback_to_blog'] && !$config['pushback_to_doing'] && !$config['pushback_to_share']) { $is_pushback_open = 0; } return $is_pushback_open; }
/** * 显示转发微博的提示信息 * @param string $tipMsg 显示信息 * @param array $rst 用户信息 */ function _showTip($tipMsg, $rst = array()) { if (XWB_Plugin::pCfg('is_rebutton_relateUid_assoc')) { $owbUserRs = $this->_getCacheOfficialWeiboUser(); } else { $owbUserRs = array(); } include XWB_P_ROOT . '/tpl/share_msg.tpl.php'; exit; }