<?php /* * @version $Id: space.hack.php 375 2010-12-08 06:06:11Z yaoying $ */ if (!defined('IS_IN_XWB_PLUGIN')) { exit('Access Denied!'); } $sina_uid = XWB_plugin::F('sinaUidFilter', array($uid)); $appkey = XWB_APP_KEY; //签名解析 $GLOBALS['space']['sightml'] = isset($GLOBALS['space']['sightml']) ? XWB_plugin::F('xwb_format_signature', $GLOBALS['space']['sightml']) : '';
<?php /* * @version $Id: viewthread.hack.php 673 2011-05-03 02:06:05Z yaoying $ */ if (!defined('IS_IN_XWB_PLUGIN')) { exit('Access Denied!'); } global $_G; $uids = array(); $sina_uid = array(); foreach ($GLOBALS['postlist'] as $key => $row) { $uids[] = (int) $row['authorid']; //签名替换 $GLOBALS['postlist'][$key]['signature'] = isset($row['signature']) ? XWB_plugin::F('xwb_format_signature', $row['signature']) : ''; if ($row['first'] && XWB_plugin::pCfg('is_rebutton_display')) { $this->viewthread_subject = $row['subject']; } } $sina_uid = XWB_plugin::F('sinaUidFilter', $uids, false);
/** * 解析$GLOBALS['postlist'] * @access protected */ function _parse_postlist_in_viewthread() { global $_G; if (empty($GLOBALS['postlist']) || !is_array($GLOBALS['postlist']) || true === $this->_parsed_postlist) { return $this->_parsed_postlist; } require XWB_plugin::hackFile('viewthread'); foreach ($GLOBALS['postlist'] as $pid => $onePost) { $this->viewthread_sidetop_return[] = $this->_html_sidetop($onePost, $sina_uid); $this->viewthread_imicons_return[] = $this->_html_imicons($onePost, $sina_uid); $this->viewthread_postfooter_return[] = $this->_html_postfooter($pid, $onePost, $sina_uid); } if (!empty($_G['gp_viewpid'])) { global $post; $post['signature'] = isset($post['signature']) ? XWB_plugin::F('xwb_format_signature', $post['signature']) : ''; } $this->_parsed_postlist = true; return true; }